#shehar-standard-oauth

1 messages · Page 1 of 1 (latest)

wide sierraBOT
untold sage
#

shehar-standard-oauth

glad obsidian
#

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

untold sage
#

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

glad obsidian
#

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

untold sage
#

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

glad obsidian
#

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

untold sage
#

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.

glad obsidian
#

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

untold sage
#

How are you making the call though?

glad obsidian
#

through zapier

untold sage
#

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

glad obsidian
#

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

untold sage
#

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.

glad obsidian
#

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.

untold sage
#

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

glad obsidian
#

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

untold sage
#

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

glad obsidian
#

ok ok

untold sage
#

Also why are you passing the API key as a client_secret parameter? That's not at all what the curl example does

glad obsidian
#

how we can pass that then?

#

the API key

untold sage
#

Usually you write code for this. Again using Zapier for this makes absolutely no sense 😦

glad obsidian
#

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

untold sage
#

but you can pass the API key in the URL to use Basic Auth like https://sk_test_123:@connect.stripe.com/oauth/token

glad obsidian
#

noted

#

let me test it

#

getting same thing from your method too

untold sage
#

Did you put the : like I did?

glad obsidian
untold sage
#

why do you have a / at the end of the URL?

glad obsidian
#

you are the man

#

got the id

#

great and thank you again sir

#

removed the / and it is working