Get parameters from Stripe page redirect URL Node.js

筅森魡賤 提交于 2019-12-06 06:31:38

I figured it out. In the account settings, under Connect, you have to change the redirect URI to yourURL.com/oauth/callback in order for it to work. I only had it redirecting to yourURL.com

  1. Add redirect_uri to The redirect URL https://connect.stripe.com/oauth/authorize?response_type=code&CLIENT_ID=blahblahblah&redirect_uri=localhost:9000/stripe-callback
  2. Get authorization code from param "code" of redirect_uri
  3. Your site then makes a request to our OAuth token endpoint to fetch the user’s authorization credentials, storing them on your site.

Note: Input your redirect_uri on stripe dashboard setting in https://dashboard.stripe.com/account/applications/settings

Or Dashboard -> Account settings -> Connect -> Platform Settings -> Redirect URIs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!