Return all Stripe payment methods instead of only card

Closes #12990
(grafted from c14c04f42a434770cfb93310b0ffd15e8335b4d4)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2024-02-02 19:51:34 +01:00
parent ae84e0a539
commit a29ced8303
+1 -2
View File
@@ -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))