#zlf_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1351430181255905333
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
The card needs to be attached to the customer first, before you can set it as the default payment method. Try using https://docs.stripe.com/api/payment_methods/attach to attach that test card first
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright, I'll give it a try.
After a renewal failure, I retrieved the PaymentIntent from the subscription details and initiated the payment using the client_secret with another card. The payment was successful, but the defaultPaymentMethod of my subscription is now empty. Does this mean that the subscription will not be able to auto-renew next time?
This is the subscription information when the renewal payment failed.
This is the subscription information after successfully paying with another card. The defaultPaymentMethod field is missing.
Stripe doesn't re-set the default payment method on the subscription. If you want to set it, you need to make the corresponding request to do so.
Stripe uses either the customer's or the subscription's default payment method. The subscription's default payment method takes precedence over the customer's if both exist
So, does this mean that for this subscription, the next payment will be charged using the customer's default payment method?
yes, that's correct
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
If I want to set the new card as the default payment method for the subscription, how should I do it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If the user doesn't have a default payment method, will this subscription payment fail?
yes it will fail if both the customer and subscription has no default payment method