pub struct CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures {
pub payment_method_allow_redisplay_filters: Option<Vec<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodAllowRedisplayFilters>>,
pub payment_method_redisplay: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodRedisplay>,
pub payment_method_remove: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodRemove>,
pub payment_method_save: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodSave>,
pub payment_method_save_allow_redisplay_override: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodSaveAllowRedisplayOverride>,
}Expand description
This hash contains the features the mobile payment element supports.
Fields§
§payment_method_allow_redisplay_filters: Option<Vec<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodAllowRedisplayFilters>>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”].
payment_method_redisplay: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodRedisplay>Controls whether or not the mobile payment element shows saved payment methods.
payment_method_remove: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodRemove>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.
payment_method_save: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodSave>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.
payment_method_save_allow_redisplay_override: Option<CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesPaymentMethodSaveAllowRedisplayOverride>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).
Trait Implementations§
Source§impl Clone for CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures
impl Clone for CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures
Source§fn clone(
&self,
) -> CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures
fn clone( &self, ) -> CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more