Question about basic Stripe setup

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.

Has anyone accomplished this yet?

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}

This will allow you to enter a confirmation page:

After that, you can call Stripe to validation the payment amount, item quantity, customer IDs via email (or the checkout session), subscription id etc

Yes, this would be true if it were on web, but I’m trying to redirect people back to my mobile app once the web payment is successful.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.