CardPaymentMethodDetails constructor
- @FreezedUnionValue('card')
- @ElementConverter() required Element card,
- @JsonKey(name: "billing_details") 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('card')
const factory CardPaymentMethodDetails({
/// Uses the provided card or cardNumber Element for confirmation.
@ElementConverter() required Element card,
/// The billing_details associated with the card.
@JsonKey(name: "billing_details") BillingDetails? billingDetails,
}) = _CardPaymentMethodDefault;