#secret_lil_squirrel
1 messages · Page 1 of 1 (latest)
Unfortunately not as far as I know. I think you'll need to listen for checkout.session.completed events and then set it as the default payment method on the customer from there.
Ahh okay. which endpoint can I use to set a setup_intent as default?
You will update the Customer and set the SetupIntent's PaymentMethod as the Customer's invoice_settings.default_payment_method https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
OK sounds good. Thanks