Class: Stripe::DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodOptions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/delegated_checkout/requested_session_create_params.rb

Defined Under Namespace

Classes: Card

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

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

Constructor Details

#initialize(card: nil, excluded_payment_method_types: nil) ⇒ PaymentMethodOptions

Returns a new instance of PaymentMethodOptions.



146
147
148
149
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 146

def initialize(card: nil, excluded_payment_method_types: nil)
  @card = card
  @excluded_payment_method_types = excluded_payment_method_types
end

Instance Attribute Details

#cardObject

Card-specific payment method options.



142
143
144
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 142

def card
  @card
end

#excluded_payment_method_typesObject

The payment method types to exclude from the session.



144
145
146
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 144

def excluded_payment_method_types
  @excluded_payment_method_types
end