#shehar-standard-oauth
1 messages · Page 1 of 1 (latest)
shehar-standard-oauth
Hey @glad obsidian once you do the step at https://stripe.com/docs/connect/oauth-standard-accounts#token-request that will finish the connection and give you the account id
I have done the steps and i can get the authorization code too
but then we need to send that authorization code to get the stripe account id
so i am getting some thing else
I don't know what that means
There's one step, the one I linked you to. That is what finishes the connection and gives you the account id
If it doesn't work, please share your exact code and what the problem is and I'm happy to help
ok i am sending that
this is the api where i need to post the authorization code back
this is the error i am getting
I'm sorry but you gave a picture of a curl call and then another picture of a response in some tool or browser or something? Please provide detailed information if you want me to help you
I am working with the zapier and i need to post back the authorization code and the grant type to this url
when i post them instead of getting stripe account id i am getting this doctype html response
i want to know why i am not getting the stripe account id based on the posted authorization code
What does that mean "when I post them"? I am sorry but you're giving almost no information. You're a developer, please detail exactly what code you wrote, or what tool you are using.
I am using zapier for this integration. we want to send commision to our vendors based on the defined percentage. In order to give them commission we are trying to connect them with our stripe account using this oauth. In Oauth API we need to follow some steps 1- provide our vendors with a link to connect them with our account and then in return we will get an authorization code and that authorization code needs to post to this url https://connect.stripe.com/oauth/token to get the stripe account id of the connected account
How are you making the call though?
through zapier
but how. Zapier is just a tool. What exact code are you writing as the experienced developer.
And really it's ~impossible to use Zapier only to build an entire Connect platform, this will never work
dont worry about that you just need to tell me the post call. I am successfully get uptil the autorization code. just need to know when i posting this authorization code. not able to get the stripe account id
why i am getting that large response
got my point?
i can able to post the authorization code too but not getting the right response back
You need to make the right HTTPS POST request that's all. Right now I can't help because you gave me nothing other than a picture and the fact that you use Zapier.
zapier is a tool that will help us to make that https post request and it is making
but in return we are not getting right response.
Because you aren't making the call right, but again you gave nothing. I'm sorry, like I need to see exact code or exact UI where you make the call
ok ok
let me send you the UI
this is the call i am making
can you please check the code. I am passing three things. client API, code and the grant type
oh boy there's a real live key barely redacted,why would you do that, why wouldn't you do this in Test mode too
Please immediately roll your API key https://stripe.com/docs/keys#rolling-key
ok ok
Also why are you passing the API key as a client_secret parameter? That's not at all what the curl example does
Usually you write code for this. Again using Zapier for this makes absolutely no sense 😦
sir we are actually a nocode company
and we have made logic for all project
and we are getting results too
just stuck on this response
but you can pass the API key in the URL to use Basic Auth like https://sk_test_123:@connect.stripe.com/oauth/token
Did you put the : like I did?
why do you have a / at the end of the URL?