Forum Academy Marketplace Showcase Pricing Features

Cancel and Success URls for Stripe Checkout

I could really use a field to modify default success and cancel urls for stripe checkout. This way, if someone backs out of a subscription, they don’t lose all of their onboarding work. And, when they successfully subscribe, they redirect looks nice and clean.

Currently no option to change the experience for cancel urls. The success redirect is being handled by popups and pauses[quote=“dylan6, post:1, topic:283556, full:true”]
I could really use a field to modify default success and cancel urls for stripe checkout. This way, if someone backs out of a subscription, they don’t lose all of their onboarding work. And, when they successfully subscribe, they redirect looks nice and clean.

Currently no option to change the experience for cancel urls. The success redirect is being handled by popups and pauses

@bubble.trouble #bugs

You can use a custom API call to specify the success/cancel URLs. What method are you using right now to take a customer to a checkout page?

standard stripe plugin.

You could try something like this:

Just remember to add your Stripe API key as a shared header.

line_items[0][price] is the price ID of the subscription. success_url is of course the success URL (and you can also specify a cancel_url if you wish).

client_reference_id = current user’s unique ID

Create checkout session by providing an email or customer ID, and the price ID/success URL etc. then save the customerID to the user. Then, open an external webpage which is the Result of Step X Create checkout session’s url.

Once the payment is complete, the subscription created + checkout session completed triggers will fire in Stripe that you can connect to backend workflows. Detailed Stripe docs for this API call are here: Stripe API reference – Create a Checkout Session – curl