pub enum CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave {
Disabled,
Enabled,
}
Expand description
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
.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Source§fn clone(
&self,
) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
fn clone( &self, ) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl PartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Source§fn eq(
&self,
other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave,
) -> bool
fn eq( &self, other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl Eq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl StructuralPartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Auto Trait Implementations§
impl Freeze for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl RefUnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl Send for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl Sync for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl Unpin for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
impl UnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSave
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more