📅  最后修改于: 2022-03-11 14:48:12.899000             🧑  作者: Mango
npm install stripe @types/stripe
import * as Stripe from 'stripe';
const stripe = new Stripe('xxx_xxx_xxx');
//Or alternatively
import { resources } from 'stripe';
const stripeData = require('stripe')('xxx_xxx_xxx');
const customers = new resources.Customers(stripeData, null);