Importuj pasek w ES6
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');
(async () => {
const customer = await stripe.customers.create({
email: '[email protected]',
});
console.log(customer.id);
})();
Gleaming Gorilla