[][src]Struct stripe::PaymentIntentCreateParams

pub struct PaymentIntentCreateParams<'a> {
    pub allowed_source_types: Vec<PaymentIntentSourceType>,
    pub amount: u64,
    pub currency: Currency,
    pub application_fee_amount: Option<u64>,
    pub capture_method: Option<CaptureMethod>,
    pub confirm: Option<bool>,
    pub customer: Option<&'a str>,
    pub description: Option<&'a str>,
    pub metadata: Option<Metadata>,
    pub on_behalf_of: Option<&'a str>,
    pub receipt_email: Option<&'a str>,
    pub return_url: Option<&'a str>,
    pub save_source_to_customer: Option<bool>,
    pub shipping: Option<ShippingDetails>,
    pub source: Option<&'a str>,
    pub statement_descriptor: Option<&'a str>,
    pub transfer_data: Option<TransferData>,
    pub transfer_group: Option<&'a str>,
}

The set of parameters that can be used when creating a payment_intent object.

For more details see https://stripe.com/docs/api/payment_intents/create

Fields

allowed_source_types: Vec<PaymentIntentSourceType>

The list of source types (e.g. card) that this PaymentIntent is allowed to use.

amount: u64currency: Currencyapplication_fee_amount: Option<u64>capture_method: Option<CaptureMethod>confirm: Option<bool>

Attempt to confirm this PaymentIntent on source attachment.

customer: Option<&'a str>description: Option<&'a str>metadata: Option<Metadata>on_behalf_of: Option<&'a str>receipt_email: Option<&'a str>return_url: Option<&'a str>save_source_to_customer: Option<bool>shipping: Option<ShippingDetails>source: Option<&'a str>statement_descriptor: Option<&'a str>transfer_data: Option<TransferData>transfer_group: Option<&'a str>

Trait Implementations

impl<'a> Clone for PaymentIntentCreateParams<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Default for PaymentIntentCreateParams<'a>[src]

impl<'a> Debug for PaymentIntentCreateParams<'a>[src]

impl<'a> Serialize for PaymentIntentCreateParams<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self