#Raghav-default-payment-method
1 messages · Page 1 of 1 (latest)
heya @young rapids, you would need to set invoice_settings.default_payment_method [0]
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
so can I listen for setup_intent.succeeded webhook and once it's succeeded can I update it as the default method? @tardy knoll
yes, that would work
Alright
is it possible to pass in the setup intent id as the value for customer.invoice_settings.default_payment_method or I need to use setup_intent.payment_method @tardy knoll
you need to use the PaymentMethod id, it'll look like pm_123
which yes, is this : https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method
Thanks, dude 🙂