stripe

// Set up a customer object var customer = await stripe.customers.create({ email: 'customer@example.com', }); // Save the customer's payment method var paymentMethod = await stripe.paymentMethods.attach( 'pm_card_visa', {customer: customer.id}, ); //…

Continue Readingstripe