#jemmons-checkout-defaultpm
1 messages ยท Page 1 of 1 (latest)
HI ๐
I don't think that would set it as the default payment method. It will attach it to the customer though. What you could do is listen for the checkout.session.completed event and the Checkout Session object will include bot the Customer ID and the Payment Method ID and then update the Customer object to set that PM ID as the invoice_settings.default_payment_method
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
๐ Thanks!