ConfirmationToken constructor
const
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
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).
Implementation
const ConfirmationToken({
required this.created,
this.expiresAt,
required this.id,
required this.livemode,
this.mandateData,
this.paymentIntent,
this.paymentMethodPreview,
this.returnUrl,
this.setupFutureUsage,
this.setupIntent,
this.shipping,
required this.useStripeSdk,
});