Class: Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::Session::CreateParams::SavedPaymentMethodOptions
- Defined in:
- lib/stripe/resources/checkout/session.rb
Instance Attribute Summary collapse
-
#allow_redisplay_filters ⇒ Object
Uses the ‘allow_redisplay` value of each saved payment method to filter the set presented to a returning customer.
-
#payment_method_save ⇒ Object
Enable customers to choose if they wish to save their payment method for future use.
Instance Method Summary collapse
-
#initialize(allow_redisplay_filters: nil, payment_method_save: nil) ⇒ SavedPaymentMethodOptions
constructor
A new instance of SavedPaymentMethodOptions.
Methods inherited from RequestParams
Constructor Details
#initialize(allow_redisplay_filters: nil, payment_method_save: nil) ⇒ SavedPaymentMethodOptions
Returns a new instance of SavedPaymentMethodOptions.
2712 2713 2714 2715 |
# File 'lib/stripe/resources/checkout/session.rb', line 2712 def initialize(allow_redisplay_filters: nil, payment_method_save: nil) @allow_redisplay_filters = allow_redisplay_filters @payment_method_save = payment_method_save end |
Instance Attribute Details
#allow_redisplay_filters ⇒ Object
Uses the ‘allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
2708 2709 2710 |
# File 'lib/stripe/resources/checkout/session.rb', line 2708 def allow_redisplay_filters @allow_redisplay_filters end |
#payment_method_save ⇒ Object
Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
2710 2711 2712 |
# File 'lib/stripe/resources/checkout/session.rb', line 2710 def payment_method_save @payment_method_save end |