#xfechx-update-payment-method
1 messages · Page 1 of 1 (latest)
hmmm, not even with a webhook?
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
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?
you can configure this on the dashboard to control the accepted payment_method
see the default_payment_methods section there
I have all the options activated
but this invoice, for example - only has a card enabled?
while this one has all options:
can this be updated in invoice.payment_succeded ?
hello?
sorry, back, let me take a look
I see for this https://invoice.stripe.com/i/acct_1ClDIPHlZBj3A1TO/invst_KBEoSAu5cxDpNH0KLSToCud6nRWUUN0 invoice, it was from a subscription created from a checkout session
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