Struct PaymentMethodConfiguration

Source
pub struct PaymentMethodConfiguration {
Show 41 fields pub acss_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub active: bool, pub affirm: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub afterpay_clearpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub alipay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub apple_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub application: Option<String>, pub au_becs_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub bacs_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub bancontact: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub blik: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub boleto: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub card: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub cartes_bancaires: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub cashapp: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub eps: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub fpx: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub giropay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub google_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub grabpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub id: String, pub ideal: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub is_default: bool, pub jcb: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub klarna: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub konbini: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub link: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub livemode: bool, pub name: String, pub object: String, pub oxxo: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub p24: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub parent: Option<String>, pub paynow: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub paypal: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub promptpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub revolut_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub sepa_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub sofort: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub us_bank_account: Option<PaymentMethodConfigResourcePaymentMethodProperties>, pub wechat_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>,
}
Expand description

PaymentMethodConfigurations control which payment methods are displayed to your customers when you don’t explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.

There are two types of PaymentMethodConfigurations. Which is used depends on the charge type:

Direct configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.

Child configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.

Child configurations have a parent that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account’s associated child configuration. Parent configurations are managed in the dashboard and are not available in this API.

Related guides:

Fields§

§acss_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§active: bool

Whether the configuration can be used for new payments.

§affirm: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§afterpay_clearpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§alipay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§apple_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§application: Option<String>

For child configs, the Connect application associated with the configuration.

§au_becs_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§bacs_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§bancontact: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§blik: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§boleto: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§card: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§cartes_bancaires: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§cashapp: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§eps: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§fpx: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§giropay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§google_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§grabpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§id: String

Unique identifier for the object.

§ideal: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§is_default: bool

The default configuration is used whenever a payment method configuration is not specified.

§jcb: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§klarna: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§konbini: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§link: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§livemode: bool

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

§name: String

The configuration’s name.

§object: String

String representing the object’s type. Objects of the same type share the same value.

§oxxo: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§p24: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§parent: Option<String>

For child configs, the configuration’s parent configuration.

§paynow: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§paypal: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§promptpay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§revolut_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§sepa_debit: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§sofort: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§us_bank_account: Option<PaymentMethodConfigResourcePaymentMethodProperties>
§wechat_pay: Option<PaymentMethodConfigResourcePaymentMethodProperties>

Trait Implementations§

Source§

impl Clone for PaymentMethodConfiguration

Source§

fn clone(&self) -> PaymentMethodConfiguration

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 PaymentMethodConfiguration

Source§

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

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

impl Default for PaymentMethodConfiguration

Source§

fn default() -> PaymentMethodConfiguration

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PaymentMethodConfiguration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for PaymentMethodConfiguration

Source§

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

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

impl Serialize for PaymentMethodConfiguration

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,