Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

import stripe in es6

import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');

(async () => {
  const customer = await stripe.customers.create({
    email: 'customer@example.com',
  });

  console.log(customer.id);
})();
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #import #stripe
ADD COMMENT
Topic
Name
4+3 =