Struct ConfirmPaymentIntentPaymentMethodData

Source
pub struct ConfirmPaymentIntentPaymentMethodData {
Show 52 fields pub acss_debit: Option<PaymentMethodParam>, pub affirm: Option<Value>, pub afterpay_clearpay: Option<Value>, pub alipay: Option<Value>, pub allow_redisplay: Option<ConfirmPaymentIntentPaymentMethodDataAllowRedisplay>, pub alma: Option<Value>, pub amazon_pay: Option<Value>, pub au_becs_debit: Option<ConfirmPaymentIntentPaymentMethodDataAuBecsDebit>, pub bacs_debit: Option<ConfirmPaymentIntentPaymentMethodDataBacsDebit>, pub bancontact: Option<Value>, pub billie: Option<Value>, pub billing_details: Option<ConfirmPaymentIntentPaymentMethodDataBillingDetails>, pub blik: Option<Value>, pub boleto: Option<ConfirmPaymentIntentPaymentMethodDataBoleto>, pub cashapp: Option<Value>, pub customer_balance: Option<Value>, pub eps: Option<ConfirmPaymentIntentPaymentMethodDataEps>, pub fpx: Option<ConfirmPaymentIntentPaymentMethodDataFpx>, pub giropay: Option<Value>, pub grabpay: Option<Value>, pub ideal: Option<ConfirmPaymentIntentPaymentMethodDataIdeal>, pub interac_present: Option<Value>, pub kakao_pay: Option<Value>, pub klarna: Option<ConfirmPaymentIntentPaymentMethodDataKlarna>, pub konbini: Option<Value>, pub kr_card: Option<Value>, pub link: Option<Value>, pub metadata: Option<HashMap<String, String>>, pub mobilepay: Option<Value>, pub multibanco: Option<Value>, pub naver_pay: Option<ConfirmPaymentIntentPaymentMethodDataNaverPay>, pub nz_bank_account: Option<ConfirmPaymentIntentPaymentMethodDataNzBankAccount>, pub oxxo: Option<Value>, pub p24: Option<ConfirmPaymentIntentPaymentMethodDataP24>, pub pay_by_bank: Option<Value>, pub payco: Option<Value>, pub paynow: Option<Value>, pub paypal: Option<Value>, pub pix: Option<Value>, pub promptpay: Option<Value>, pub radar_options: Option<RadarOptionsWithHiddenOptions>, pub revolut_pay: Option<Value>, pub samsung_pay: Option<Value>, pub satispay: Option<Value>, pub sepa_debit: Option<ConfirmPaymentIntentPaymentMethodDataSepaDebit>, pub sofort: Option<ConfirmPaymentIntentPaymentMethodDataSofort>, pub swish: Option<Value>, pub twint: Option<Value>, pub type_: ConfirmPaymentIntentPaymentMethodDataType, pub us_bank_account: Option<ConfirmPaymentIntentPaymentMethodDataUsBankAccount>, pub wechat_pay: Option<Value>, pub zip: Option<Value>,
}
Expand description

If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear in the payment_method. property on the PaymentIntent.

Fields§

§acss_debit: Option<PaymentMethodParam>

If this is an acss_debit PaymentMethod, this hash contains details about the ACSS Debit payment method.

§affirm: Option<Value>

If this is an affirm PaymentMethod, this hash contains details about the Affirm payment method.

§afterpay_clearpay: Option<Value>

If this is an AfterpayClearpay PaymentMethod, this hash contains details about the AfterpayClearpay payment method.

§alipay: Option<Value>

If this is an Alipay PaymentMethod, this hash contains details about the Alipay payment method.

§allow_redisplay: Option<ConfirmPaymentIntentPaymentMethodDataAllowRedisplay>

This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to unspecified.

§alma: Option<Value>

If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.

§amazon_pay: Option<Value>

If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.

§au_becs_debit: Option<ConfirmPaymentIntentPaymentMethodDataAuBecsDebit>

If this is an au_becs_debit PaymentMethod, this hash contains details about the bank account.

§bacs_debit: Option<ConfirmPaymentIntentPaymentMethodDataBacsDebit>

If this is a bacs_debit PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.

§bancontact: Option<Value>

If this is a bancontact PaymentMethod, this hash contains details about the Bancontact payment method.

§billie: Option<Value>

If this is a billie PaymentMethod, this hash contains details about the Billie payment method.

§billing_details: Option<ConfirmPaymentIntentPaymentMethodDataBillingDetails>

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

§blik: Option<Value>

If this is a blik PaymentMethod, this hash contains details about the BLIK payment method.

§boleto: Option<ConfirmPaymentIntentPaymentMethodDataBoleto>

If this is a boleto PaymentMethod, this hash contains details about the Boleto payment method.

§cashapp: Option<Value>

If this is a cashapp PaymentMethod, this hash contains details about the Cash App Pay payment method.

§customer_balance: Option<Value>

If this is a customer_balance PaymentMethod, this hash contains details about the CustomerBalance payment method.

§eps: Option<ConfirmPaymentIntentPaymentMethodDataEps>

If this is an eps PaymentMethod, this hash contains details about the EPS payment method.

§fpx: Option<ConfirmPaymentIntentPaymentMethodDataFpx>

If this is an fpx PaymentMethod, this hash contains details about the FPX payment method.

§giropay: Option<Value>

If this is a giropay PaymentMethod, this hash contains details about the Giropay payment method.

§grabpay: Option<Value>

If this is a grabpay PaymentMethod, this hash contains details about the GrabPay payment method.

§ideal: Option<ConfirmPaymentIntentPaymentMethodDataIdeal>

If this is an ideal PaymentMethod, this hash contains details about the iDEAL payment method.

§interac_present: Option<Value>

If this is an interac_present PaymentMethod, this hash contains details about the Interac Present payment method.

§kakao_pay: Option<Value>

If this is a kakao_pay PaymentMethod, this hash contains details about the Kakao Pay payment method.

§klarna: Option<ConfirmPaymentIntentPaymentMethodDataKlarna>

If this is a klarna PaymentMethod, this hash contains details about the Klarna payment method.

§konbini: Option<Value>

If this is a konbini PaymentMethod, this hash contains details about the Konbini payment method.

§kr_card: Option<Value>

If this is a kr_card PaymentMethod, this hash contains details about the Korean Card payment method.

§link: Option<Value>

If this is an Link PaymentMethod, this hash contains details about the Link payment method.

§metadata: Option<HashMap<String, String>>

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

§mobilepay: Option<Value>

If this is a mobilepay PaymentMethod, this hash contains details about the MobilePay payment method.

§multibanco: Option<Value>

If this is a multibanco PaymentMethod, this hash contains details about the Multibanco payment method.

§naver_pay: Option<ConfirmPaymentIntentPaymentMethodDataNaverPay>

If this is a naver_pay PaymentMethod, this hash contains details about the Naver Pay payment method.

§nz_bank_account: Option<ConfirmPaymentIntentPaymentMethodDataNzBankAccount>

If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.

§oxxo: Option<Value>

If this is an oxxo PaymentMethod, this hash contains details about the OXXO payment method.

§p24: Option<ConfirmPaymentIntentPaymentMethodDataP24>

If this is a p24 PaymentMethod, this hash contains details about the P24 payment method.

§pay_by_bank: Option<Value>

If this is a pay_by_bank PaymentMethod, this hash contains details about the PayByBank payment method.

§payco: Option<Value>

If this is a payco PaymentMethod, this hash contains details about the PAYCO payment method.

§paynow: Option<Value>

If this is a paynow PaymentMethod, this hash contains details about the PayNow payment method.

§paypal: Option<Value>

If this is a paypal PaymentMethod, this hash contains details about the PayPal payment method.

§pix: Option<Value>

If this is a pix PaymentMethod, this hash contains details about the Pix payment method.

§promptpay: Option<Value>

If this is a promptpay PaymentMethod, this hash contains details about the PromptPay payment method.

§radar_options: Option<RadarOptionsWithHiddenOptions>

Options to configure Radar. See Radar Session for more information.

§revolut_pay: Option<Value>

If this is a revolut_pay PaymentMethod, this hash contains details about the Revolut Pay payment method.

§samsung_pay: Option<Value>

If this is a samsung_pay PaymentMethod, this hash contains details about the SamsungPay payment method.

§satispay: Option<Value>

If this is a satispay PaymentMethod, this hash contains details about the Satispay payment method.

§sepa_debit: Option<ConfirmPaymentIntentPaymentMethodDataSepaDebit>

If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA debit bank account.

§sofort: Option<ConfirmPaymentIntentPaymentMethodDataSofort>

If this is a sofort PaymentMethod, this hash contains details about the SOFORT payment method.

§swish: Option<Value>

If this is a swish PaymentMethod, this hash contains details about the Swish payment method.

§twint: Option<Value>

If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.

§type_: ConfirmPaymentIntentPaymentMethodDataType

The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.

§us_bank_account: Option<ConfirmPaymentIntentPaymentMethodDataUsBankAccount>

If this is an us_bank_account PaymentMethod, this hash contains details about the US bank account payment method.

§wechat_pay: Option<Value>

If this is an wechat_pay PaymentMethod, this hash contains details about the wechat_pay payment method.

§zip: Option<Value>

If this is a zip PaymentMethod, this hash contains details about the Zip payment method.

Implementations§

Trait Implementations§

Source§

impl Clone for ConfirmPaymentIntentPaymentMethodData

Source§

fn clone(&self) -> ConfirmPaymentIntentPaymentMethodData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConfirmPaymentIntentPaymentMethodData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ConfirmPaymentIntentPaymentMethodData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more