Set a return url when confirming setup intent in test scenario

A return URL is now required if the payment methods do not disable it.

Closes #12509
This commit is contained in:
Cédric Krier
2023-09-04 23:38:57 +02:00
parent 310d8d1daf
commit 8a38e435fc
@@ -89,6 +89,7 @@ Register card::
... })
>>> setup_intent = stripe.SetupIntent.confirm(
... customer.stripe_setup_intent_id,
... return_url='http://localhost/',
... payment_method=payment_method)
>>> cron_update_intent, = Cron.find([
... ('method', '=', 'account.payment.stripe.customer|stripe_intent_update'),