#xfechx-update-payment-method

1 messages · Page 1 of 1 (latest)

earnest kindle
#

Unfortunately you can not update the invoice to default automatically.

fickle ridge
#

hmmm, not even with a webhook?

earnest kindle
#

what you can do is probably listen to invoice.paid event and determine that it is a payment_method you want to default, then you update subscription.default_payment_method or custoemr.invoice_settings.default_payemnt_method

fickle ridge
#

OK sounds good

#

with the hosted invoices, how can I create one with option for different payment methods and not only card?

#

I can see that some hosted invoice pages have options, then others only card option, why is this?

earnest kindle
#

you can configure this on the dashboard to control the accepted payment_method

#

see the default_payment_methods section there

fickle ridge
#

I have all the options activated

#

but this invoice, for example - only has a card enabled?

#

while this one has all options:

fickle ridge
fickle ridge
#

hello?

earnest kindle
#

sorry, back, let me take a look

earnest kindle
#

when you created the checkout session, you are passing

  payment_method_types: {
    0: "card"
  },
#

which set the card as preferred payment_method. This is remembered in the invoice created thus the invoice page only shows the card option