PaymentMethodConfiguration class final

PaymentMethodConfigResourcePaymentMethodConfiguration

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](https://stripe.com/docs/connect/charges): 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](https://dashboard.stripe.com/settings/payment\_methods/connected\_accounts) and are not available in this API. Related guides: - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations) - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)

Implemented types

Constructors

PaymentMethodConfiguration({PaymentMethodConfigResourcePaymentMethodProperties? acssDebit, required bool active, PaymentMethodConfigResourcePaymentMethodProperties? affirm, PaymentMethodConfigResourcePaymentMethodProperties? afterpayClearpay, PaymentMethodConfigResourcePaymentMethodProperties? alipay, PaymentMethodConfigResourcePaymentMethodProperties? applePay, String? application, PaymentMethodConfigResourcePaymentMethodProperties? auBecsDebit, PaymentMethodConfigResourcePaymentMethodProperties? bacsDebit, PaymentMethodConfigResourcePaymentMethodProperties? bancontact, PaymentMethodConfigResourcePaymentMethodProperties? blik, PaymentMethodConfigResourcePaymentMethodProperties? boleto, PaymentMethodConfigResourcePaymentMethodProperties? card, PaymentMethodConfigResourcePaymentMethodProperties? cartesBancaires, PaymentMethodConfigResourcePaymentMethodProperties? cashapp, PaymentMethodConfigResourcePaymentMethodProperties? customerBalance, PaymentMethodConfigResourcePaymentMethodProperties? eps, PaymentMethodConfigResourcePaymentMethodProperties? fpx, PaymentMethodConfigResourcePaymentMethodProperties? giropay, PaymentMethodConfigResourcePaymentMethodProperties? googlePay, PaymentMethodConfigResourcePaymentMethodProperties? grabpay, required String id, PaymentMethodConfigResourcePaymentMethodProperties? ideal, required bool isDefault, PaymentMethodConfigResourcePaymentMethodProperties? jcb, PaymentMethodConfigResourcePaymentMethodProperties? klarna, PaymentMethodConfigResourcePaymentMethodProperties? konbini, PaymentMethodConfigResourcePaymentMethodProperties? link, required bool livemode, required String name, PaymentMethodConfigResourcePaymentMethodProperties? oxxo, PaymentMethodConfigResourcePaymentMethodProperties? p24, String? parent, PaymentMethodConfigResourcePaymentMethodProperties? paynow, PaymentMethodConfigResourcePaymentMethodProperties? paypal, PaymentMethodConfigResourcePaymentMethodProperties? promptpay, PaymentMethodConfigResourcePaymentMethodProperties? revolutPay, PaymentMethodConfigResourcePaymentMethodProperties? sepaDebit, PaymentMethodConfigResourcePaymentMethodProperties? sofort, PaymentMethodConfigResourcePaymentMethodProperties? usBankAccount, PaymentMethodConfigResourcePaymentMethodProperties? wechatPay})
PaymentMethodConfigResourcePaymentMethodConfiguration
const
PaymentMethodConfiguration.fromJson(Object? json)
factory

Properties

acssDebit PaymentMethodConfigResourcePaymentMethodProperties?
final
active bool
final
affirm PaymentMethodConfigResourcePaymentMethodProperties?
final
afterpayClearpay PaymentMethodConfigResourcePaymentMethodProperties?
final
alipay PaymentMethodConfigResourcePaymentMethodProperties?
final
applePay PaymentMethodConfigResourcePaymentMethodProperties?
final
application String?
final
auBecsDebit PaymentMethodConfigResourcePaymentMethodProperties?
final
bacsDebit PaymentMethodConfigResourcePaymentMethodProperties?
final
bancontact PaymentMethodConfigResourcePaymentMethodProperties?
final
blik PaymentMethodConfigResourcePaymentMethodProperties?
final
boleto PaymentMethodConfigResourcePaymentMethodProperties?
final
card PaymentMethodConfigResourcePaymentMethodProperties?
final
cartesBancaires PaymentMethodConfigResourcePaymentMethodProperties?
final
cashapp PaymentMethodConfigResourcePaymentMethodProperties?
final
customerBalance PaymentMethodConfigResourcePaymentMethodProperties?
final
eps PaymentMethodConfigResourcePaymentMethodProperties?
final
fpx PaymentMethodConfigResourcePaymentMethodProperties?
final
giropay PaymentMethodConfigResourcePaymentMethodProperties?
final
googlePay PaymentMethodConfigResourcePaymentMethodProperties?
final
grabpay PaymentMethodConfigResourcePaymentMethodProperties?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
ideal PaymentMethodConfigResourcePaymentMethodProperties?
final
isDefault bool
final
jcb PaymentMethodConfigResourcePaymentMethodProperties?
final
klarna PaymentMethodConfigResourcePaymentMethodProperties?
final
konbini PaymentMethodConfigResourcePaymentMethodProperties?
final
final
livemode bool
final
name String
final
object String
The resource's type.
final
oxxo PaymentMethodConfigResourcePaymentMethodProperties?
final
p24 PaymentMethodConfigResourcePaymentMethodProperties?
final
parent String?
final
paynow PaymentMethodConfigResourcePaymentMethodProperties?
final
paypal PaymentMethodConfigResourcePaymentMethodProperties?
final
promptpay PaymentMethodConfigResourcePaymentMethodProperties?
final
revolutPay PaymentMethodConfigResourcePaymentMethodProperties?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sepaDebit PaymentMethodConfigResourcePaymentMethodProperties?
final
sofort PaymentMethodConfigResourcePaymentMethodProperties?
final
usBankAccount PaymentMethodConfigResourcePaymentMethodProperties?
final
wechatPay PaymentMethodConfigResourcePaymentMethodProperties?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(PaymentMethodConfiguration instance, Encoder<V> encoder) → V