From 8a65fb249bee07e5cec6e33f4e20acc1f0e83b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 3 Sep 2026 15:54:42 +0200 Subject: [PATCH] Use router url_for to set return url of Stripe checkout --- modules/account_payment_stripe/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment_stripe/routes.py b/modules/account_payment_stripe/routes.py index 8b9ee7ba6b..b961614b5e 100644 --- a/modules/account_payment_stripe/routes.py +++ b/modules/account_payment_stripe/routes.py @@ -68,7 +68,7 @@ class Stripe(Router): data = { 'model': Model.__name__, 'customer_session_client_secret': customer_session_client_secret, - 'return_url': request.base_url + '/end' + 'return_url': cls.url_for('checkout_end', model=model, id=id), } ext, content, _, _ = Report.execute([record.id], data) assert ext == 'html'