SepaDebitPaymentMethodDetails constructor

  1. @FreezedUnionValue('sepa_debit')
const SepaDebitPaymentMethodDetails({
  1. @JsonKey(name: "sepa_debit") @ElementConverter() required Element sepaDebit,
  2. @JsonKey(name: "billing_details") SepaBillingDetails? billingDetails,
})

Use stripe.confirmCardPayment with payment data from an Element by passing a card or cardNumber Element as payment_methodcard in the data argument.

The new PaymentMethod will be created with data collected by the Element and will be used to confirm the PaymentIntent.

Implementation

@FreezedUnionValue('sepa_debit')
const factory SepaDebitPaymentMethodDetails({
  /// Uses the provided card or cardNumber Element for confirmation.
  @JsonKey(name: "sepa_debit") @ElementConverter() required Element sepaDebit,

  /// The customer's billing_details. name and email are required.
  @JsonKey(name: "billing_details") SepaBillingDetails? billingDetails,
}) = _SepaDebitPaymentMethodDetails;