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.



158
159
160
161
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 158

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.



154
155
156
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 154

def card
  @card
end

#excluded_payment_method_typesObject

The payment method types to exclude from the session.



156
157
158
# File 'lib/stripe/params/delegated_checkout/requested_session_create_params.rb', line 156

def excluded_payment_method_types
  @excluded_payment_method_types
end