Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
8541e157 by Cédric Krier at 2023-01-23T16:24:14+01:00
Cancel Stripe Setup Intent using the right id

Closes #12031
- - - - -


1 changed file:

- modules/account_payment_stripe/payment.py


Changes:

=====================================
modules/account_payment_stripe/payment.py
=====================================
@@ -1692,9 +1692,7 @@
                 expiration = dt.datetime.now() - delay
                 created = dt.datetime.fromtimestamp(setup_intent.created)
                 if created < expiration:
-                    stripe.SetupIntent.cancel(
-                        customer.stripe_customer_id,
-                        api_key=customer.stripe_account.secret_key)
+                    setup_intent.cancel()
                 continue
             customer.lock()
             try:



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/8541e15705c147797d79db3f96ce633952ccfb09

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/8541e15705c147797d79db3f96ce633952ccfb09
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to