final billingDetails = BillingDetails(
email: '[email protected]',
phone: '+48888000888',
address: Address(
city: 'Houston',
country: 'US',
line1: '1459 Circle Drive',
line2: '',
state: 'Texas',
postalCode: '77063',
),
); // mocked data for tests
// 2. Create payment method
final paymentMethod =
await Stripe.instance.createPaymentMethod(PaymentMethodParams.card(
billingDetails: billingDetails,
));
print(paymentMethod);