single application with multiple stripe accounts

301 views
Skip to first unread message

jake

unread,
May 11, 2015, 7:11:56 PM5/11/15
to api-d...@lists.stripe.com
Hello,

How can I connect multiple stripe accounts to one single application?

I am trying to integrate stripe in the following scenario:

- User logs in to app
- Connects Stripe account 
- Starts accepting payment from consumer.

This scenario should work for users who have their own stripe account.

Thank you

PS: I am concerned with the client_id value. Following the examples I noticed that the client_id is always hardcoded but in case another use with a different stripe account logs in, then the client_id value will need to be changed.




Remi J.

unread,
May 12, 2015, 8:48:08 AM5/12/15
to api-d...@lists.stripe.com
Hey Jake,

The `client_id` key is the id of your platform (ca_XXX) and can be
found in your Platform settings [1] in the dashboard. It should always
be the same here so that when you redirect your user to Stripe to
connect their Stripe account we know that we have to authorize your
platform. This is covered in details in our Standalone accounts
documentation [2] and explains each step you have to follow to be able
to take charges on behalf of one of your users.

At the last step [3], you'll get your user's Stripe account id
(acct_XXX) that you can then use to make any API call on his behalf
using the `Stripe-Account` header [4].

All the best,
Rémi

[1] https://dashboard-admin.stripe.com/account/applications/settings
[2] https://stripe.com/docs/connect/standalone-accounts
[3] https://stripe.com/docs/connect/standalone-accounts#token-request
[4] https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header
> --
> You received this message because you are subscribed to the Google Groups
> "Stripe API Discussion" group.
> To post to this group, send email to api-d...@lists.stripe.com.
> Visit this group at
> http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages