#JonnyDenGro

1 messages ยท Page 1 of 1 (latest)

void isleBOT
crude bay
#

Can you share the invoice id?

tired kestrel
#

Sure in_1NVAMVEXq1GrSRVnKCQ2qQzy

crude bay
tired kestrel
#

There appears to be an incomple payment but the invoice is showing with a status of failed. How can I see this 'failed' status via the API?

crude bay
#

What's the end goal though?

#

Recommend you listen to invoice.payment_failed events to get notified of invoice payment failures

void isleBOT
tired kestrel
#

We have a table that shows a customer all of their invoices, with details such as amount, status, date.
The status column is confusing them, as we are currently seeing 'open' as the status for this one. but the dashboard shows us 'failed'.
We are essentially trying to replicate the attached

#

We are already listening to the event you mentioned and trigger an email based on that, but we would like to show 'failed' in the table

vivid geyser
#

Hi ๐Ÿ‘‹

THe Dashboard is showing the status of payment attempts for the invoice

#

I'm stepping in as @crude bay needs to go

#

If you receive the payment failed notification, why can't you show the Failed status to your customers?

tired kestrel
#

Our invoice table is generated based on the response from this endpoint https://api.stripe.com/v1/invoices?customer=cus_OCUb0stjFNxc5K&limit=10 there is nothing in here that we can tie back to the failed payment attempt

vivid geyser
#

Sure you can. You can expand the PaymentIntent associated with each Invoice to see the status of the lastest payment attempt: https://stripe.com/docs/expand

tired kestrel
#

Interesting. Didn't know we could do that. Allow me a moment to try this in PostMan to see if I have any follow up questions

#

@vivid geyser Perfect, I think I can work with this for our use-case. Thank you