Class: Stripe::CustomerSessionCreateParams::Components::CustomerSheet::Features
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CustomerSessionCreateParams::Components::CustomerSheet::Features
- Defined in:
- lib/stripe/params/customer_session_create_params.rb
Instance Attribute Summary collapse
-
#payment_method_allow_redisplay_filters ⇒ Object
A list of
allow_redisplayvalues that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with anallow_redisplayvalue that is present in this list. -
#payment_method_remove ⇒ Object
Controls whether the customer sheet displays the option to remove a saved payment method.".
Instance Method Summary collapse
-
#initialize(payment_method_allow_redisplay_filters: nil, payment_method_remove: nil) ⇒ Features
constructor
A new instance of Features.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(payment_method_allow_redisplay_filters: nil, payment_method_remove: nil) ⇒ Features
Returns a new instance of Features.
27 28 29 30 |
# File 'lib/stripe/params/customer_session_create_params.rb', line 27 def initialize(payment_method_allow_redisplay_filters: nil, payment_method_remove: nil) @payment_method_allow_redisplay_filters = payment_method_allow_redisplay_filters @payment_method_remove = payment_method_remove end |
Instance Attribute Details
#payment_method_allow_redisplay_filters ⇒ Object
A list of allow_redisplay values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an allow_redisplay value that is present in this list.
If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
21 22 23 |
# File 'lib/stripe/params/customer_session_create_params.rb', line 21 def payment_method_allow_redisplay_filters @payment_method_allow_redisplay_filters end |
#payment_method_remove ⇒ Object
Controls whether the customer sheet displays the option to remove a saved payment method."
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the customer object from that PaymentMethod.
25 26 27 |
# File 'lib/stripe/params/customer_session_create_params.rb', line 25 def payment_method_remove @payment_method_remove end |