I’d like to be able to enable a customer to change which card will be billed for a payment plan.
I’m not seeing anywhere in the table schema where the credit card is associated to the payment plan, or the job, or the invoice.
Use case – this is a payment plan, NOT a subscription.
Let’s say it’s to pay some amount over 6 payments, each 1 month apart.
After the first month, the customer has some new credit card and wishes to use this new card ( totally new card, not same number, new exp date).
Let’s say we add this new card via api - I’m assuming we’d get back the card ID - or possibly let’s say the user is presented with a drop down list showing current cards (cart type, last 4 digits) - and we get the ID of whatever card is selected.
Can I then take an Order, find the PaymentPlan that belongs to that order, and change the credit card that will be auto-charged for the next -> nth payment?