【文件属性】:
文件名称:stripe-api-node-express:适用于Stripe API的Express服务器
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-12 09:12:55
nodejs express stripe-api json-web-token JavaScript
Stripe API Express服务器
一个简单的Express api服务器,用于创建Stripe费用。
安装
npm install
npm install -g foreman # Install foreman globally
.env文件示例
更新您的.env文件,使其看起来相似。
{
"server" : {
"ip" : "0.0.0.0" ,
"port" : 3000
} ,
"auth" : {
"secret" : "" ,
"algorithm" : "HS256"
} ,
"stripe" : {
"publishable_key" : "" ,
"secret_key" : ""
}
}
产生金钥
我们将使用私钥
【文件预览】:
stripe-api-node-express-master
----.gitignore(63B)
----app()
--------404.js(290B)
--------index.js(535B)
--------auth()
--------routes()
----.eslintrc(509B)
----package.json(857B)
----.env_example(222B)
----README.md(1KB)
----Procfile(16B)
----npm-shrinkwrap.json(87KB)