📅  最后修改于: 2022-03-11 15:03:29.908000             🧑  作者: Mango
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);
})();