How to integrate Stripe Connect with Node.js?

后端 未结 2 1613
南方客
南方客 2021-01-06 02:16

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

I dont know what to do next and the documentation is difficult

相关标签:
2条回答
  • 2021-01-06 02:48
    1. After Clicking on 'Authorize' button, at your redirected URI it will give you Authorization code.
    2. After getting Authorization code you should make post request to get details of connected user account.

    It will give you json like this

    {
       "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. Now by using USER_ID and ACCESS_TOKEN and REFRESH_TOKEN, you can make charges on connected user account.
    0 讨论(0)
  • 2021-01-06 03:04

    1 Use https://github.com/gtramontina/stripe-angular on Client

    2.Use https://github.com/stripe/stripe-node on server

    0 讨论(0)
提交回复
热议问题