Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managing subscription flow with Checkout #11

slybridges opened this issue Aug 25, 2019 · 1 comment


Copy link

commented Aug 25, 2019


I hope this question is not too off topic.

We charge customers via flat fee monthly subscriptions hosted on Stripe Product. We are in a process of upgrading our legacy custom payment flow (old, pre Elements) to an SCA compatible flow while trying to minimize the effort spent on it.

We are considering using the new Checkout as the simplest way forward and have the following working:

  • create and fulfill a subscription via Checkout
  • handle off-session 3DS payment authentication issues via Stripe Dunning emails

However we are wondering how to handle off-session payment authorization failures (like expired cards or insufficient funds)? Stripe allows to enter a custom link for dunning emails about payment failures but I couldn’t find an option to redirect to a hosted Stripe page (similar to 3DS failures) where a user could enter a new payment details for his current subscription.

Does that mean that we have create a custom flow with Elements and manage Payment/Setup intents ourselves for payment failures? We would really like to avoid this as we are somewhat stuck with an older API version that would cost us quite some effort to upgrade.



What API does your question relate to: Checkout

Stripe Products

What Stripe Products are you using: Payments, Billing, Product, Checkout (implementation in progress)

Tech stack

  • Backend language/frameworks: Python (Django + Pinax-Stripe)
  • Frontend libraries/frameworks: React
  • Stripe API version: 2018-01-03
  • Stripe library version: Stripe Python 2.35.0

This comment has been minimized.

Copy link

commented Aug 27, 2019

Closing this as I found the answer :-)

I have to listen to the invoice.payment_failed event which contains a hosted_invoice_url that I can use to redirect the user to when a payment fails.

Would be great to have an option in Stripe "Send emails when card payments fail" setting to use this hosted_invoice_url by default. Until then, we'll do it on our end.

@slybridges slybridges closed this Aug 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.