#edutomesco
1 messages · Page 1 of 1 (latest)
You set it on the customer on its invoice_settings.default_payment_method field
When the user use checkout setup to change the payment method I should do it manually?
Can you tell me more of what you mean there? Checkout can start subscriptions but it can't change the payment method on them. We do have a Customer Portal offering for that if you have not seen it already: https://stripe.com/docs/customer-management/get-started
sorry I mean the checkout with setup mode
That won't automatically set the payment method as the default, so in this case listen to the checkout.session.completed event and set invoice_settings.default_payment_method on the customers from there
invoice_settings.default_payment_method this from what?
https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It is a setting on the the customer object
Attaching just means that it is associated with the Customer. Checkout will automatically attach the payment method. The thing I pointed to is setting an attached payment method as the default payment method, which is separate
Nice now I understand