#anyuming_44007
1 messages · Page 1 of 1 (latest)
Can you share the subscription ID (sub_xxx) that the payment failed?
sub_1OULoqAEDF4bq5JkXMbYpRcz
Just now the deduction failed
Do you have any results
Thanks for waiting! Discord is busy now
Do you have any results
There is no default_payment_method set on the subscription or customer, so the payment can't be charged
To charge the subscription to the saved payment method, default_payment_method on the subscription should be set: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I need to synchronize the payment method with the new subscription as well
The steps will be:
- Retrieve the save payment methods on the customer: https://stripe.com/docs/api/payment_methods/customer_list
- Update the
default_payment_methodto one of the saved payment methods: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So yes, you'd need to sync the default_payment_method on the new subscription as well