【文件属性】:
文件名称:stripe-node:Stripe API的Node.js库
文件大小:506KB
文件格式:ZIP
更新时间:2021-04-11 20:16:02
stripe JavaScript
条带Node.js库
Stripe节点库提供了使用服务器端JavaScript编写的应用程序对Stripe API的便捷访问。
要在浏览器中收集客户和付款信息,请使用 。
文献资料
请参阅Node.js的Stripe 。
观看有关如何使用该库的 。
要求
节点8、10或更高。
安装
使用以下方法安装软件包:
npm install stripe --save
# or
yarn add stripe
用法
该程序包需要使用您帐户的密钥配置,该密钥可在。 要求它具有键的值:
const stripe = require ( 'stripe' ) ( 'sk_test_...' ) ;
stripe . customers . create ( {
email : 'customer@example.com' ,
} )
. then ( customer => consol