import stripe in es6

Solutions on MaxInterview for import stripe in es6 by the best coders in the world

showing results for - "import stripe in es6"
Claudia
08 Nov 2020
1import Stripe from 'stripe';
2const stripe = new Stripe('sk_test_...');
3
4(async () => {
5  const customer = await stripe.customers.create({
6    email: 'customer@example.com',
7  });
8
9  console.log(customer.id);
10})();