ConfirmationToken class final

ConfirmationTokensResourceConfirmationToken

ConfirmationTokens help transport client side data collected by Stripe JS over to your server for confirming a PaymentIntent or SetupIntent. If the confirmation is successful, values present on the ConfirmationToken are written onto the Intent. To learn more about how to use ConfirmationToken, visit the related guides: - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server) - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation).

Implemented types

Constructors

ConfirmationToken({required DateTime created, DateTime? expiresAt, required String id, required bool livemode, ConfirmationTokenMandateData? mandateData, String? paymentIntent, ConfirmationTokenPaymentMethodPreview? paymentMethodPreview, String? returnUrl, ConfirmationTokenSetupFutureUsage? setupFutureUsage, String? setupIntent, ConfirmationTokenShipping? shipping, required bool useStripeSdk})
ConfirmationTokensResourceConfirmationToken
const
ConfirmationToken.fromJson(Object? json)
factory

Properties

created DateTime
final
expiresAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
livemode bool
final
mandateData ConfirmationTokenMandateData?
Data used for generating a Mandate.
final
object String
The resource's type.
final
paymentIntent String?
final
paymentMethodPreview ConfirmationTokenPaymentMethodPreview?
Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
final
returnUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setupFutureUsage ConfirmationTokenSetupFutureUsage?
final
setupIntent String?
final
shipping ConfirmationTokenShipping?
Shipping information collected on this ConfirmationToken.
final
useStripeSdk bool
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>(ConfirmationToken instance, Encoder<V> encoder) → V