Class: Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card::Restrictions
- Defined in:
- lib/stripe/services/checkout/session_service.rb
Instance Attribute Summary collapse
-
#brands_blocked ⇒ Object
Specify the card brands to block in the Checkout Session.
Instance Method Summary collapse
-
#initialize(brands_blocked: nil) ⇒ Restrictions
constructor
A new instance of Restrictions.
Methods inherited from RequestParams
Constructor Details
#initialize(brands_blocked: nil) ⇒ Restrictions
Returns a new instance of Restrictions.
954 955 956 |
# File 'lib/stripe/services/checkout/session_service.rb', line 954 def initialize(brands_blocked: nil) @brands_blocked = brands_blocked end |
Instance Attribute Details
#brands_blocked ⇒ Object
Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can’t complete the Session.
952 953 954 |
# File 'lib/stripe/services/checkout/session_service.rb', line 952 def brands_blocked @brands_blocked end |