Class: Stripe::Checkout::SessionCreateParams::SavedPaymentMethodOptions

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(allow_redisplay_filters: nil, payment_method_remove: nil, payment_method_save: nil) ⇒ SavedPaymentMethodOptions

Returns a new instance of SavedPaymentMethodOptions.



2166
2167
2168
2169
2170
2171
2172
2173
2174
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2166

def initialize(
  allow_redisplay_filters: nil,
  payment_method_remove: nil,
  payment_method_save: nil
)
  @allow_redisplay_filters = allow_redisplay_filters
  @payment_method_remove = payment_method_remove
  @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.



2160
2161
2162
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2160

def allow_redisplay_filters
  @allow_redisplay_filters
end

#payment_method_remove ⇒ Object

Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.



2162
2163
2164
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2162

def payment_method_remove
  @payment_method_remove
end

#payment_method_save ⇒ Object

Enable customers to choose if they wish to save their payment method for future use. Disabled by default.



2164
2165
2166
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2164

def payment_method_save
  @payment_method_save
end