Return all Stripe payment methods instead of only card
Closes #12990 (grafted from c14c04f42a434770cfb93310b0ffd15e8335b4d4) --HG-- branch : 7.0
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user