When integrating Stripe Connect for end-2-end payment, common issue is how to receive callback to arbitrary domain or url params.
For instance, you may need to return to arbitrary subdomain like https://{subdomain}.proshopdigital.io/callback.
Like as other services, we can register only one redirect URL in the stripe dashboard.
In this case, we can use state
variable for these variant use case.
https://stripe.com/docs/connect/oauth-reference
You can append your subdomain value as state param and then callback route will include the value in the redirect URI.
You can extraction the subdomain from the callback request and redirect or whatever action you want.