#Richard-Checkout
1 messages · Page 1 of 1 (latest)
Hi there, so basically you want to update the subscription's default_payment_method with the one your customer use in the hosted invoice page?
That would be great.
(I think there are other ways to achieve what I want, but that would work!)
When your customer paid the invoice via hosted invoice page, Stripe will automatically create payment_method and attach it to the customer.
So you can listen to the invoice.paid event, set the subscription's default_payment_method with the payment_method that your customer uses to pay the invoice