#Carlos Mascarenhas - default payment method
1 messages · Page 1 of 1 (latest)
You can do either
Setting it on the subscription will mean it is used for that subscription. Setting it on the customer means it is used for all subscriptions on the customer that don't have a default specified themselves.
Carlos Mascarenhas - default payment method
ok
In the renewal flow, when the payment fails and the stripe requires a new payment method, how should I proceed to update the payment method?
You will want to reach out to the user and ask them to add a new card. https://stripe.com/docs/billing/subscriptions/overview#requires-payment-method
You can direct them to the Customer Portal or the Invoice's hosted URL page if you don't want to write the page to collect their new details
Otherwise you can collect them on your own custom page and retry the payment on the invoice with those details
I'm listening for the invoice.payment_succeeded event, every time a payment is made if it's a subscription creation it updates the user's default payment method
In this case, where the subscription is already created and I'm just collecting new payment data, how could I be updating the payment method?
Did you understand what I meant?
In that case it looks like the app is updating it so it is used automatically in future