Struct stripe::ConfirmSetupIntent
source · pub struct ConfirmSetupIntent {
pub payment_method: Option<PaymentMethodId>,
pub mandate_data: Option<MandateData>,
pub payment_method_data: Option<UpdatePaymentIntentPaymentMethodData>,
pub payment_method_options: Option<UpdatePaymentIntentPaymentMethodOptions>,
pub return_url: Option<String>,
pub use_stripe_sdk: bool,
}
Expand description
The set of parameters that can be used when confirming a setup_intent object.
For more details see https://stripe.com/docs/api/setup_intents/confirm
Fields§
§payment_method: Option<PaymentMethodId>
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
mandate_data: Option<MandateData>
This hash contains details about the mandate to create
payment_method_data: Option<UpdatePaymentIntentPaymentMethodData>
When included, this hash creates a PaymentMethod that is set as the payment_method value in the SetupIntent.
payment_method_options: Option<UpdatePaymentIntentPaymentMethodOptions>
Payment method-specific configuration for this SetupIntent.
return_url: Option<String>
The URL to redirect your customer back to after they authenticate on the payment method’s app or site.
use_stripe_sdk: bool
Set to true
when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
Trait Implementations§
source§impl Clone for ConfirmSetupIntent
impl Clone for ConfirmSetupIntent
source§fn clone(&self) -> ConfirmSetupIntent
fn clone(&self) -> ConfirmSetupIntent
Returns a copy 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 Debug for ConfirmSetupIntent
impl Debug for ConfirmSetupIntent
Auto Trait Implementations§
impl Freeze for ConfirmSetupIntent
impl RefUnwindSafe for ConfirmSetupIntent
impl Send for ConfirmSetupIntent
impl Sync for ConfirmSetupIntent
impl Unpin for ConfirmSetupIntent
impl UnwindSafe for ConfirmSetupIntent
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