#allianceRes
1 messages · Page 1 of 1 (latest)
Yeah most likely the old payment method is still attached to the sub
Can you share the subscription id?
sub_1MWKkkGfA2lQACd1d0LcFs10
So since the sub is set to charge the default pm, you just need to make sure it's set here: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
And then retry paying the invoice: https://stripe.com/docs/api/invoices/pay
it cant be automatically?
I mean if I add default_payment_method when I update my customer Stripe wont pay the last invoice with th new card automatically?
Hello 👋
Taking over here
As far as I know, we don't retry if all the retry attempts have been exhausted for the invoice
OK
another question,
when I attach a new card to the customer, Stripe will use it for the future paiement of the subscription?
It has to be set as a default payment method in order for us to charge it in future.
using invoice_settings.default_payment_method?
yup
can you please, check which card is the default for my subscription: sub_1MWKkkGfA2lQACd1d0LcFs10
It looks like the default here is whatever's default on the customer
You can take a look at this yourself too
Because I updated the cutomer without using invoice_settings.default_payment_method
so what is this parameter for if my card has automatically become the default?
Because I updated the cutomer without using invoice_settings.default_payment_method
What do you mean by that?
when I updated my Customer I did not use this parameter
But I see that the new card is now the default mayment method for this Customer
Ah you're using default_source
so what's the usefulness of invoice_settings.default_payment_method
You're using the legacy Tokens/Sources API
to store the card
https://stripe.com/docs/payments/payment-methods/transitioning
This doc goes over the differences between the Tokens/Sources API vs PaymentMethod API