SetupAttempt constructor

const SetupAttempt({
  1. ApplicationOrId? application,
  2. bool? attachToSelf,
  3. required DateTime created,
  4. BankAccountCustomerOrId? customer,
  5. List<SetupAttemptFlowDirectionsItem>? flowDirections,
  6. required String id,
  7. required bool livemode,
  8. AccountOrId? onBehalfOf,
  9. required PaymentMethodOrId paymentMethod,
  10. required SetupAttemptPaymentMethodDetails paymentMethodDetails,
  11. ApiErrors? setupError,
  12. required SetupIntentOrId setupIntent,
  13. required String status,
  14. required String usage,
})

PaymentFlowsSetupIntentSetupAttempt

A SetupAttempt describes one attempted confirmation of a SetupIntent, whether that confirmation is successful or unsuccessful. You can use SetupAttempts to inspect details of a specific attempt at setting up a payment method using a SetupIntent.

Implementation

const SetupAttempt({
  this.application,
  this.attachToSelf,
  required this.created,
  this.customer,
  this.flowDirections,
  required this.id,
  required this.livemode,
  this.onBehalfOf,
  required this.paymentMethod,
  required this.paymentMethodDetails,
  this.setupError,
  required this.setupIntent,
  required this.status,
  required this.usage,
});