如何将Stripe Connect与Node.js集成? [英] How to integrate Stripe Connect with Node.js?

查看:132
本文介绍了如何将Stripe Connect与Node.js集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,即使您在Stripe帐户中登录,我们也会将您重定向到我的网站。

So im at the part where you sign in your Stripe account and it redirects you to my website once done.

我不知道接下来要做什么,文档难以理解,因为我在node.js中没有任何expierence

I dont know what to do next and the documentation is difficult to comprehend because i dont have any expierence in node.js

我只需要做一些指导。

I just need some guidance in what to do.

推荐答案



  1. 点击授权按钮后,重定向URI它将为您提供授权代码。

  2. 获取授权代码后,您应该发布请求以获取已连接用户帐户的详细信息。


它会给你 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
}





  1. 现在,通过使用USER_ID和ACCESS_TOKEN以及REFRESH_TOKEN,您可以对已连接的用户帐户收费。


这篇关于如何将Stripe Connect与Node.js集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆