From a29ced83037fc6d7d9cd926c60012e6aa3894dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 2 Feb 2024 19:51:34 +0100 Subject: [PATCH] Return all Stripe payment methods instead of only card Closes #12990 (grafted from c14c04f42a434770cfb93310b0ffd15e8335b4d4) --HG-- branch : 7.0 --- modules/account_payment_stripe/payment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/account_payment_stripe/payment.py b/modules/account_payment_stripe/payment.py index 62aad288fb..41969129f6 100644 --- a/modules/account_payment_stripe/payment.py +++ b/modules/account_payment_stripe/payment.py @@ -1641,8 +1641,7 @@ class Customer(CheckoutMixin, DeactivableMixin, ModelSQL, ModelView): payment_methods = stripe.PaymentMethod.list( api_key=self.stripe_account.secret_key, stripe_version=STRIPE_VERSION, - customer=self.stripe_customer_id, - type='card') + customer=self.stripe_customer_id) except (stripe.error.RateLimitError, stripe.error.APIConnectionError) as e: logger.warning(str(e))