pub struct CreateSetupIntentAutomaticPaymentMethods {
pub allow_redirects: Option<CreateSetupIntentAutomaticPaymentMethodsAllowRedirects>,
pub enabled: bool,
}
Expand description
When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.
Fields§
§allow_redirects: Option<CreateSetupIntentAutomaticPaymentMethodsAllowRedirects>
Controls whether this SetupIntent will accept redirect-based payment methods.
Redirect-based payment methods may require your customer to be redirected to a payment method’s app or site for authentication or additional steps.
To confirm this SetupIntent, you may be required to provide a return_url
to redirect customers back to your site after they authenticate or complete the setup.
enabled: bool
Whether this feature is enabled.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSetupIntentAutomaticPaymentMethods
impl Clone for CreateSetupIntentAutomaticPaymentMethods
Source§fn clone(&self) -> CreateSetupIntentAutomaticPaymentMethods
fn clone(&self) -> CreateSetupIntentAutomaticPaymentMethods
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 moreimpl Copy for CreateSetupIntentAutomaticPaymentMethods
Auto Trait Implementations§
impl Freeze for CreateSetupIntentAutomaticPaymentMethods
impl RefUnwindSafe for CreateSetupIntentAutomaticPaymentMethods
impl Send for CreateSetupIntentAutomaticPaymentMethods
impl Sync for CreateSetupIntentAutomaticPaymentMethods
impl Unpin for CreateSetupIntentAutomaticPaymentMethods
impl UnwindSafe for CreateSetupIntentAutomaticPaymentMethods
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