📅  最后修改于: 2022-03-11 14:48:42.934000             🧑  作者: Mango
const stripe = require('stripe')(STRIPE_KEY);
const subscription = await stripe.subscriptions.create({
customer: CUSTOMER_ID,
items: [
{price: PRICE_ID},
],
pay_immediately: false
});