Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shifoodew's avatar

Stripe Connect Tutorial

Hi everyone!

can someone provide me a link tutorial about stripe connect. Or a sample code how to connect client's account to the platform account?

0 likes
4 replies
shifoodew's avatar

@martinbean I followed the steps in the link you provided. but I'm still not getting this response

{
    ...
   "stripe_user_id": "acct_HpiGRBgs469yYK",
   ...
}

After clicking the button connect my stripe account. where could I found the above response?

BTW. the steps that I made was

1.) create a button and paste this code

 https://connect.stripe.com/oauth/authorize?response_type=code&client_id={WITH MY OWN CLIENT ID}&scope=read_only

2.)Log in with my other stripe test account ID then click connect.

martinbean's avatar
Level 80

@shifoodew You will need to set a redirect URL in Stripe. Stripe will redirect back to this URL after a user has authorised your application. In this redirect URL you need to execute this POST request: https://stripe.com/docs/connect/oauth-reference#post-token

You can use something like Guzzle to do this. In the response, you’ll then get the connected account’s ID, access token etc.

Please or to participate in this conversation.