#mieradi
1 messages · Page 1 of 1 (latest)
Wow that was fast!
hi! well it's not really possible, Checkout sets the default_payment_method on the Subscription for you, it doesn't set the customer default.
if you want to set it on the customer level, you would do it yourself by e.g. calling https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method with the ID of the PM while handling the checkout.session.completed webhook
Yes ok! Immediately what I thought and this clarifies things haha
In the docs is states that it’s not recommended to set the default payment method that way, and that you should use or create a payment intent. Honestly the wording is a bit confusing so I’m sure I have it mixed up.
But if it’s as simple as this, that’s great news. For clarity, I am trying to store this so that a customer can subscribe to other prices later on without needing to step through the checkout flow. Will this allow that?
yes I think that would work