Class: Stripe::Checkout::SessionCreateParams::PaymentMethodOptions::Card::Restrictions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, discriminator, discriminator_fields, field_encodings, new, #to_h

Constructor Details

#initialize(brands_blocked: nil, funding_types_blocked: nil) ⇒ Restrictions

Returns a new instance of Restrictions.



1016
1017
1018
1019
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1016

def initialize(brands_blocked: nil, funding_types_blocked: nil)
  @brands_blocked = brands_blocked
  @funding_types_blocked = funding_types_blocked
end

Instance Attribute Details

#brands_blockedObject

The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.



1012
1013
1014
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1012

def brands_blocked
  @brands_blocked
end

#funding_types_blockedObject

Card funding types to block for this Checkout Session. Supported values are credit, debit, and prepaid.



1014
1015
1016
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1014

def funding_types_blocked
  @funding_types_blocked
end