#john-invoice-default-pm
1 messages · Page 1 of 1 (latest)
john-invoice-default-pm
I don't think it's the default. You can listen for payment_method.attached as the Event type and then react accordingly
Thanks! So I would update the customer invoice_settings.default_payment_method to the ID of the newly attached payment method? https://stripe.com/docs/api/customers/update
yes
Sounds great, thank you koopajah!
One detail... the PaymentMethod object doc says the customer attribute on the object will not be set when the PaymentMethod has not been saved to a Customer. Will the PaymentMethod have been set in my scenario? (paying on hosted invoice page, connecting US bank account as part of the payment process) https://stripe.com/docs/api/payment_methods/object#payment_method_object-customer