#irat_oauth-standard
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212812153372016721
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
irat_apps-refreshtoken
Hey @plain thunder Can you provide a bit more context around your exact ask, what you are doing, what's not working and especially which exact doc page are you following?
Hello
I am developing a plataform which will integrate with Stripe. So, my users will be able to make transactions in Stripe via my plataform. To authenticate and autorizate it, we are using OAuth.
The conection is operating well, but now I need to develope the method to refresh the token once it expiry.
My 2 main doubts are:
- how can I get the expiry date from Refresh Tokens in Stripe? They are not provided in the JSON right?
- how can I get a new refresh token? This one I believe it is described in documentation, but I tryied with my current refresh token and I received a 400
Here is the main doc page I'm following:
Are you using OAuth and Connect or are you building a Stripe App. Those are completely different integration paths
I'm using OAuth to connect my plataform with stripe accounts from the users.
There is this page also:
https://docs.stripe.com/stripe-apps/api-authentication/oauth
yeah that's why I am asking. The two integration are completely different
so I need to know which one you are really using
I guess I messed up this 2 so. I'm using OAuth and Connect.
Okay so you never really need refresh token like ever
you would always use your own platform's Secret API key and pass the connected account acct_123 in the Stripe-Account header if needed: https://stripe.com/docs/connect/authentication#stripe-account-header
Ok, so I can use OAuth just for retrieve the account ID, and than I can use this way to make the operations right?
yes
https://stripe.com/docs/connect/oauth-standard-accounts is the doc you want
irat_oauth-standard
Ok, well done. Thank you