Class: Stripe::CustomerSession::Components::MobilePaymentElement::Features
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::CustomerSession::Components::MobilePaymentElement::Features
- Defined in:
- lib/stripe/resources/customer_session.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#payment_method_allow_redisplay_filters ⇒ Object
readonly
A list of
allow_redisplayvalues that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with anallow_redisplayvalue that is present in this list. -
#payment_method_redisplay ⇒ Object
readonly
Controls whether or not the mobile payment element shows saved payment methods.
-
#payment_method_remove ⇒ Object
readonly
Controls whether the mobile payment element displays the option to remove a saved payment method.".
-
#payment_method_save ⇒ Object
readonly
Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
-
#payment_method_save_allow_redisplay_override ⇒ Object
readonly
Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_encodings, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#payment_method_allow_redisplay_filters ⇒ Object (readonly)
A list of allow_redisplay values that controls which saved payment methods the mobile payment element 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"].
71 72 73 |
# File 'lib/stripe/resources/customer_session.rb', line 71 def payment_method_allow_redisplay_filters @payment_method_allow_redisplay_filters end |
#payment_method_redisplay ⇒ Object (readonly)
Controls whether or not the mobile payment element shows saved payment methods.
73 74 75 |
# File 'lib/stripe/resources/customer_session.rb', line 73 def payment_method_redisplay @payment_method_redisplay end |
#payment_method_remove ⇒ Object (readonly)
Controls whether the mobile payment element 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.
77 78 79 |
# File 'lib/stripe/resources/customer_session.rb', line 77 def payment_method_remove @payment_method_remove end |
#payment_method_save ⇒ Object (readonly)
Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
If a customer checks the box, the allow_redisplay value on the PaymentMethod is set to 'always' at confirmation time. For PaymentIntents, the setup_future_usage value is also set to the value defined in payment_method_save_usage.
81 82 83 |
# File 'lib/stripe/resources/customer_session.rb', line 81 def payment_method_save @payment_method_save end |
#payment_method_save_allow_redisplay_override ⇒ Object (readonly)
Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
If not specified, defaults to nil (no override value).
85 86 87 |
# File 'lib/stripe/resources/customer_session.rb', line 85 def payment_method_save_allow_redisplay_override @payment_method_save_allow_redisplay_override end |
Class Method Details
.field_remappings ⇒ Object
91 92 93 |
# File 'lib/stripe/resources/customer_session.rb', line 91 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
87 88 89 |
# File 'lib/stripe/resources/customer_session.rb', line 87 def self.inner_class_types @inner_class_types = {} end |