class

Stripe::CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

This hash contains the features the Payment Element supports.

Constants

ERROR_MESSAGE_FOR_PAYMENT_METHOD_ALLOW_REDISPLAY_FILTERS = "invalid value for \"payment_method_allow_redisplay_filters\", must be one of [always, limited, unspecified]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_REDISPLAY = "invalid value for \"payment_method_redisplay\", must be one of [disabled, enabled]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_REMOVE = "invalid value for \"payment_method_remove\", must be one of [disabled, enabled]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_SAVE = "invalid value for \"payment_method_save\", must be one of [disabled, enabled]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_SAVE_USAGE = "invalid value for \"payment_method_save_usage\", must be one of [off_session, on_session]."
VALID_VALUES_FOR_PAYMENT_METHOD_ALLOW_REDISPLAY_FILTERS = String.static_array("always", "limited", "unspecified")
VALID_VALUES_FOR_PAYMENT_METHOD_REDISPLAY = String.static_array("disabled", "enabled")
VALID_VALUES_FOR_PAYMENT_METHOD_REMOVE = String.static_array("disabled", "enabled")
VALID_VALUES_FOR_PAYMENT_METHOD_SAVE = String.static_array("disabled", "enabled")
VALID_VALUES_FOR_PAYMENT_METHOD_SAVE_USAGE = String.static_array("off_session", "on_session")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, payment_method_allow_redisplay_filters : Array(String) | Nil = nil, payment_method_redisplay : String | Nil = nil, payment_method_redisplay_limit : Int64 | Nil = nil, payment_method_remove : String | Nil = nil, payment_method_save : String | Nil = nil, payment_method_save_usage : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
payment_method_allow_redisplay_filters

A list of allow_redisplay values that controls which saved payment methods the 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"].

Source
payment_method_allow_redisplay_filters=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_allow_redisplay_filters Object to be assigned

Source
payment_method_redisplay

Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to disabled.

Source
payment_method_redisplay=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_redisplay Object to be assigned

Source
payment_method_redisplay_limit

Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to 3.

Source
payment_method_redisplay_limit=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_redisplay_limit Object to be assigned

Source
payment_method_remove

Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to disabled. 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.

Source
payment_method_remove=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_remove Object to be assigned

Source
payment_method_save

Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to disabled. 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.

Source
payment_method_save=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_save Object to be assigned

Source
payment_method_save_usage

When using PaymentIntents and the customer checks the save checkbox, this field determines the setup_future_usage value used to confirm the PaymentIntent. When using SetupIntents, directly configure the usage value on SetupIntent creation.

Source
payment_method_save_usage=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_save_usage Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source