📜  条纹打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:12.899000             🧑  作者: Mango

代码示例1
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);