#darthvader2.0.
1 messages · Page 1 of 1 (latest)
Hello 👋
Typically the invoice/declined payment would have the details about why it failed.
Can you share an example?
You can share the ID too evt_xxx
evt_1OjM59D61y4hNCGDDzhdoZdT
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
So that’s why?
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
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
I doubt that they didn't select any PMs, as you look at the request made by the dashboard
https://dashboard.stripe.com/logs/req_iUWqFsgaAQViss
it clearly shows the payment method was provided
I see
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
Maybe stripe dashboard if is does not select a pm chooses the first one available ?
could be, not sure to be honest
Ok, np
Makes sense ur answer
I thought this was maybe the issue but wanted to get a second opinion
All good, happy to help 🙂