I’m trying to do a simple Stripe Checkout using the https://api.stripe.com/v1/checkout/sessions endpoint. I couldn’t get the Stripe Checkout page to open in a Webview element, so I switched to using the “external url” action.
When a checkout session is completed in the user’s browser (e.g. Chrome), how can I get the user to automatically redirect to the app, if possible?
I read about registering a Custom URL Scheme and replace my success_url to something like myapp://payment-success?session_id={CHECKOUT_SESSION_ID} but it seems like a reach to assume this would work on the Bubble native.
Do you mean Stripe’s payment links? If so, you can set that up on Stripe itself:
Click Edit on the Payment link, then there’s a tiny tab in the top left for “After payment”. Click there, then toggle “Don’t show confirmation page”.
Tip: You can add Stripe parameters too it, like (your_url?session={CHECKOUT_SESSION_ID}