Query for redirect url for connected account

133 views
Skip to first unread message

Laxmi Malpani

unread,
Oct 29, 2020, 12:00:52 PM10/29/20
to Stripe API Discussion
Hi

For stripe connected account, how we add redirect url dynamic(code wise).

or is there any way to support multi domain like https://*.domain.com because I dont want to entry for  every domain manually


Thanks

Laxmi Malpani

Remi J.

unread,
Oct 29, 2020, 12:29:19 PM10/29/20
to api-d...@lists.stripe.com
Hello Laxmi,

We do not support dynamic redirect URLs like this for security reasons. You can read more about this in this post [1] for example.

What we recommend is to redirect to one specific URL on your server and from there you can redirect to the subdomain you want yourself based on the current user or state.

I hope this helps!
Remi


Laxmi Malpani

unread,
Oct 29, 2020, 9:58:29 PM10/29/20
to api-d...@lists.stripe.com
Thanks for your reply

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Laxmi Malpani

unread,
Oct 30, 2020, 12:20:04 PM10/30/20
to Stripe API Discussion, Laxmi Malpani
How I can redirect to one specific URL on my server and from there i can redirect to the subdomain which i want yourself based on the current user or state.  

Remi J.

unread,
Oct 30, 2020, 12:28:19 PM10/30/20
to api-d...@lists.stripe.com
Hello,

The idea is that you would one one redirect URL for your service, for example https://example.com/redirect_url. You send your customers through the OAuth flow to Stripe and they create an account. Once they are done, we send them back to your redirect URL. There, you identify who they are, usually by using a cookie/session you set before you sent them through OAuth. Based on that, you can then redirect them to the correct URL you wanted them to land on.

For example let's say you have a custom subdomain for each customer. When someone signs up for your service, you calculate their default subdomain and store this in the session or in your database. Then, you send them to OAuth and when they come back you recognize them (with the session) and you know to send them to https://randomdomain.example.com/ for example.

I can't speak to exactly how to implement this in your own application as it depends on your current integration but it should hopefully clarify the best next steps. I'd recommend talking to our support team if you have any integration-specific question about your integration: https://support.stripe.com/contact

Hope this helps!
Remi

Laxmi Malpani

unread,
Nov 2, 2020, 11:25:11 AM11/2/20
to Stripe API Discussion, re...@stripe.com
Hi

while creating subsction i am facing this issue : As per Indian regulations, export transactions require a customer name and address. More info here: https://stripe.com/docs/india-exports

Remi J.

unread,
Nov 2, 2020, 3:28:58 PM11/2/20
to Laxmi Malpani, Stripe API Discussion
Hello,

This error message explains that in India you have to collect a customer's name and address before being able to accept a payment from an international customer. It also links to our detailed documentation page on this topic: https://stripe.com/docs/india-exports I'd recommend going through that doc to confirm why this applies to you and make the relevant changes. 

I would also recommend chatting with our support team directly if you have more questions about your integration as they can help you in real time: https://support.stripe.com/contact

Best,
Remi
Reply all
Reply to author
Forward
0 new messages