ConfirmationToken constructor

const ConfirmationToken({
  1. required DateTime created,
  2. DateTime? expiresAt,
  3. required String id,
  4. required bool livemode,
  5. ConfirmationTokenMandateData? mandateData,
  6. String? paymentIntent,
  7. ConfirmationTokenPaymentMethodPreview? paymentMethodPreview,
  8. String? returnUrl,
  9. ConfirmationTokenSetupFutureUsage? setupFutureUsage,
  10. String? setupIntent,
  11. ConfirmationTokenShipping? shipping,
  12. 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,
});