toPaymentMethod method
Implementation
PaymentMethodData toPaymentMethod() {
return PaymentMethodData(
type: PaymentMethodType.card,
card: CardMethod(
cvc: cvc, expMonth: expMonth, expYear: expYear, number: number),
billingDetails: BillingDetails(
address: Address(
city: addressCity,
country: addressCountry,
line1: addressLine1,
line2: addressLine2,
postalCode: addressZip,
state: addressCountry,
),
name: name));
}