#GastonLifschitz
1 messages · Page 1 of 1 (latest)
Hi there!
For # 2, you can update a subscription's default_payment_method
For # 1, you can bring the customer back on session and collect their payment details - https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures
So my idea on #2 is the following:
7 days before (subscription about to renew) and if there's no default_payment_method I'm planning on sending the customer a link where they can update that. Do you guys provide any API to do so?
In case the payment method is not valid or there's none.
Does this make any sense?
Yep! I recommend using invoice_settings.default_payment_method - https://stripe.com/docs/api/customers/object#customer_object-invoice_settings
Awesome, that brings me to another question. I see that I can update that information.... How would you handle a case where there are multiple payment methods associated with a customer but there's no default one? I was thinking of using the last one, but I'm not entirely sure.