PaymentMethod class final

PaymentMethod

PaymentMethod objects represent your customer's payment instruments. You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to Customer objects to store instrument details for future payments. Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).

Implemented types

Constructors

PaymentMethod({PaymentMethodAcssDebit? acssDebit, PaymentMethodAffirm? affirm, PaymentMethodAfterpayClearpay? afterpayClearpay, PaymentFlowsPrivatePaymentMethodsAlipay? alipay, PaymentMethodAuBecsDebit? auBecsDebit, PaymentMethodBacsDebit? bacsDebit, PaymentMethodBancontact? bancontact, required BillingDetails billingDetails, PaymentMethodBlik? blik, PaymentMethodBoleto? boleto, PaymentMethodCard? card, PaymentMethodCardPresent? cardPresent, PaymentMethodCashapp? cashapp, required DateTime created, CustomerOrId? customer, PaymentMethodCustomerBalance? customerBalance, PaymentMethodEps? eps, PaymentMethodFpx? fpx, PaymentMethodGiropay? giropay, PaymentMethodGrabpay? grabpay, required String id, PaymentMethodIdeal? ideal, PaymentMethodInteracPresent? interacPresent, PaymentMethodKlarna? klarna, PaymentMethodKonbini? konbini, PaymentMethodLink? link, required bool livemode, Map<String, String>? metadata, PaymentMethodMobilepay? mobilepay, PaymentMethodOxxo? oxxo, PaymentMethodP24? p24, PaymentMethodPaynow? paynow, PaymentMethodPaypal? paypal, PaymentMethodPix? pix, PaymentMethodPromptpay? promptpay, RadarRadarOptions? radarOptions, PaymentMethodRevolutPay? revolutPay, PaymentMethodSepaDebit? sepaDebit, PaymentMethodSofort? sofort, PaymentMethodSwish? swish, required ConfirmationTokenPaymentMethodPreviewType type, PaymentMethodUsBankAccount? usBankAccount, PaymentMethodWechatPay? wechatPay, PaymentMethodZip? zip})
PaymentMethod
const
PaymentMethod.fromJson(Object? json)
factory

Properties

acssDebit PaymentMethodAcssDebit?
final
affirm PaymentMethodAffirm?
final
afterpayClearpay PaymentMethodAfterpayClearpay?
final
alipay PaymentFlowsPrivatePaymentMethodsAlipay?
final
auBecsDebit PaymentMethodAuBecsDebit?
final
bacsDebit PaymentMethodBacsDebit?
final
bancontact PaymentMethodBancontact?
final
billingDetails BillingDetails
final
blik PaymentMethodBlik?
final
boleto PaymentMethodBoleto?
final
card PaymentMethodCard?
final
cardPresent PaymentMethodCardPresent?
final
cashapp PaymentMethodCashapp?
final
created DateTime
final
customer CustomerOrId?
final
customerBalance PaymentMethodCustomerBalance?
final
eps PaymentMethodEps?
final
fpx PaymentMethodFpx?
final
giropay PaymentMethodGiropay?
final
grabpay PaymentMethodGrabpay?
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the PaymentMethod.
final
ideal PaymentMethodIdeal?
final
interacPresent PaymentMethodInteracPresent?
final
klarna PaymentMethodKlarna?
final
konbini PaymentMethodKonbini?
final
final
livemode bool
final
metadata Map<String, String>?
final
mobilepay PaymentMethodMobilepay?
final
object String
The resource's type.
final
oxxo PaymentMethodOxxo?
final
p24 PaymentMethodP24?
final
paynow PaymentMethodPaynow?
final
paypal PaymentMethodPaypal?
final
pix PaymentMethodPix?
final
promptpay PaymentMethodPromptpay?
final
radarOptions RadarRadarOptions?
final
revolutPay PaymentMethodRevolutPay?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sepaDebit PaymentMethodSepaDebit?
final
sofort PaymentMethodSofort?
final
swish PaymentMethodSwish?
final
type ConfirmationTokenPaymentMethodPreviewType
final
usBankAccount PaymentMethodUsBankAccount?
final
wechatPay PaymentMethodWechatPay?
final
zip PaymentMethodZip?
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>(PaymentMethod instance, Encoder<V> encoder) → V
override