javascript – 如何将Stripe Connect与Node.js集成?
作者:互联网
所以即时通讯是您登录Stripe帐户的部分,它会在您完成后重定向到我的网站.
我不知道接下来该做什么,文档很难理解,因为我在node.js中没有任何expierence
我只需要做一些指导.
解决方法:
- After Clicking on ‘Authorize’ button, at your redirected URI it will give you Authorization code.
- After getting Authorization code you should make post request to get details of connected user account.
它会给你这样的json
{
"token_type": "bearer",
"stripe_publishable_key": PUBLISHABLE_KEY,
"scope": "read_write",
"livemode": false,
"stripe_user_id": USER_ID,
"refresh_token": REFRESH_TOKEN,
"access_token": ACCESS_TOKEN
}
- Now by using USER_ID and ACCESS_TOKEN and REFRESH_TOKEN, you can make charges on connected user account.
标签:javascript,node-js,stripe-payments,stripe-connect 来源: https://codeday.me/bug/20190702/1361293.html