#BeatTech1-invoice
1 messages · Page 1 of 1 (latest)
Do you mean you want to change the payment method of the customer?
A user has a new credit card and has cancelled their previous credit card. We would like to take an outstanding invoice and change the credit card number on it so that it uses the new valid credit card and not old cancelled card.
Is this possible and if so would you please provide me with a link to the documentation so we can properly implement this?
Yeah it is possible but you have to do a few things
There are multiple ways of achieving this
the first one is using checkout
This the easiest way and the most straight forward and what we actually recommend
but if you don't want to use checkout you could implement the flow by yourself and would be happy to help you with that. In summary you'd use Elements to create a payment method, attach it to the customer, set it up to be the default payment method for billing/invoices
or the last option is using the CustomerPortal. You could read all about it here https://stripe.com/docs/billing/subscriptions/integrating-customer-portal?platform=billing
IMO I would order the complexities from the easiest to the hardest to implement: 1- CustomerPortal 2-Checkout 3-Writing your own integration
Cool cool, many thanks 🙂