P24PaymentMethodDetails constructor

  1. @FreezedUnionValue('p24')
const P24PaymentMethodDetails({
  1. @JsonKey(name: "billing_details") required BillingDetails? 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('p24')
const factory P24PaymentMethodDetails({
  /// The billing_details associated with the card.
  @JsonKey(name: "billing_details") required BillingDetails? billingDetails,
}) = _P24PaymentMethodDetails;