#edutomesco

1 messages · Page 1 of 1 (latest)

stoic wingBOT
oblique hearth
#

You set it on the customer on its invoice_settings.default_payment_method field

rain ember
#

When the user use checkout setup to change the payment method I should do it manually?

oblique hearth
rain ember
#

sorry I mean the checkout with setup mode

oblique hearth
#

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

rain ember
#

invoice_settings.default_payment_method this from what?

oblique hearth
#

It is a setting on the the customer object

rain ember
#

what is the difference between this

#

And what you said

oblique hearth
#

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

rain ember
#

Nice now I understand