#UnyteBI
1 messages · Page 1 of 1 (latest)
Hi there
The typical way here would be to listen for webhooks and then update the Customer to set the invoice_settings.default_payment_method on the Customer so that it is used for all future invoice payments
Ah actually even easier would be to use payment_settings.save_default_payment_method (https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method) which I believe should work with send_invoice as well
I haven't actually tested that with send_invoice before... it is mainly used to automatically set the default with charge_automatically Subs