[][src]Struct stripe::PaymentIntentCreateParams

pub struct PaymentIntentCreateParams<'a> {
    pub payment_method_types: Vec<PaymentIntentMethodType>,
    pub amount: u64,
    pub currency: Currency,
    pub payment_method: Option<&'a str>,
    pub confirmation_method: Option<PaymentIntentConfirmationMethod>,
    pub application_fee_amount: Option<u64>,
    pub capture_method: Option<PaymentIntentCaptureMethod>,
    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<Shipping>,
    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

payment_method_types: Vec<PaymentIntentMethodType>

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

amount: u64currency: Currencypayment_method: Option<&'a str>confirmation_method: Option<PaymentIntentConfirmationMethod>application_fee_amount: Option<u64>capture_method: Option<PaymentIntentCaptureMethod>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<Shipping>source: Option<&'a str>statement_descriptor: Option<&'a str>transfer_data: Option<TransferData>transfer_group: Option<&'a str>

Methods

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

pub fn new(amount: u64, currency: Currency) -> Self[src]

Trait Implementations

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

impl<'a> Clone 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<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self