#darthvader2.0.

1 messages · Page 1 of 1 (latest)

bright summitBOT
mental junco
#

Hello 👋
Typically the invoice/declined payment would have the details about why it failed.
Can you share an example?

sour finch
#

Hello

#

you mean to give u the log for invoice.payment_failed?

mental junco
#

You can share the ID too evt_xxx

sour finch
#

evt_1OjM59D61y4hNCGDDzhdoZdT

mental junco
#

Looks like the invoice payment failed as there was no payment method on the file? Digging to see what's going on

#

Ah the customer doesn't have a default payment method

sour finch
#

So that’s why?

mental junco
#

if you retrieve the customer and look at
customer.invoice_settings.default_payment_method , its null

#

yeah

#

in that case, Stripe won't know which payment method to charge

#

also explains why it works through the dashboard since it allows you to select a payment method

sour finch
#

But when manually I trigger the payment from the dashboard it works

#

Oh got it

#

My client said she did not select any pm

#

I thought not having the pm as default was the issue maybe

#

But when she said when she manually triggers the payment does not select a pm so that’s where I got confused

mental junco
sour finch
#

I see

mental junco
#

but also, my team on discord isn't very familiar with how dashboard does things

#

so possible that there's a different flow via dashboard

sour finch
#

Maybe stripe dashboard if is does not select a pm chooses the first one available ?

mental junco
#

could be, not sure to be honest

sour finch
#

Ok, np

#

Makes sense ur answer

#

I thought this was maybe the issue but wanted to get a second opinion

mental junco
#

All good, happy to help 🙂