This customer has no attached payment source or default payment method. Please consider adding a default payment method.
Hello!
We have problems with Stripe Subscriptions. One time payments are fine but creating subscriptions falls 9 out of 10 with the following error:
This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.
Stripe dashboard:
400 ERR POST /v1/subscriptions 1:20:27 PM
Response body { "error": { "code": "resource_missing", "doc_url": "https://stripe.com/docs/error-codes/resource-missing", "message": "This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.", "request_log_url": "https://dashboard.stripe.com/test/logs/req_FzvhBX6m3D3BiX?t=1676290827", "type": "invalid_request_error" } }
browser console:
2023-03-01T12:52:09.373Z stripe: No available paymentMethods for paymentRequest2023-03-01T12:52:09.373Z stripe: No available paymentMethods for paymentRequest
How could I set the default payment method?
stack:
- Drupal 9.5.2
- CiviCRM 5.57.2
- webform_civicrm 6.2.3
- Stripe Payment Processor 6.7.14
- Contribution.Transact alternative API implementation 1.5.1
- Payment Shared 1.2.11
- Firewall 1.5.8
Thanks