#GiuseppeB
1 messages · Page 1 of 1 (latest)
Hi there! Right, updating the subscription's default_payment_method will not change or update the payment method that's already associated with an invoice's PaymentIntent
so what should I do? any doc directions?
You'll want to update the payment_method on the invoice's PaymentIntent. This should move the PaymentIntent back to the 'requires_confirmation' state. Then, you'll want to confirm the PI, which will allow the charge to succeed
well but in the second case I have a card that doesn't require verification. so what should I do in that case
?
I don't think I follow. I understand the 4242 test card doesn't require verification but in the flow above, you've already linked the 3220 card to the invoice's PaymentIntent.
You'll need to update the PI with the new card
so it isn't enough to update the "default_source" of the subscription ☹️
that's right, that will only affect new invoices going forward
got it, thanks
@copper topaz I have a similar flow to yours. What we do when the new CC is added is just call https://stripe.com/docs/api/invoices/pay with the new payment_method ID for each unpaid invoice on the subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks @rocky matrix