#okays-invoice

1 messages ยท Page 1 of 1 (latest)

solar tapir
#

๐Ÿ‘‹ happy to help

#

I will try my best to dig into this

topaz ibex
#

Thank you in advance!

foggy mirage
#

Hey, taking over here!

#

However the event data shows that it was paid in 2019, but the finalized_at date for the invoice was last week
What makes you think it was paid in 2019?

#

As you can see, payment only succeeded on 7/8/22

#

When the Invoice is generated, an associated Payment Intent is also created to facilitate payment. That's not indicative of an actual payment though (a PI is a state machine to track status of payment attempts)

#

In this case, the disparity in dates is because the Invoice was never marked void. This means it can in theory be paid at any point by the customer

topaz ibex
#

Hi! I must have misread - I'd swapped finalized_at and paid_at

#

Are you saying that the customer has manually found the old invoice and paid it?

#

(is there a way to check that)

#

Also - the payment ID associated with the webhook is pi_1EDhqPFgJ7FCi1F20jFzeOja - the dashboard is saying that the payment succeeded on March 14 2019

foggy mirage
#

Check the paid_at field on the Invoice, too: 2022-07-07 21:30:24

#

Otherwise if the user still has the link for the HIP (via an email), then they'll be able to make payment

foggy mirage
#

Let me double check on this

#

Actually, I think you're right. Looks like it was paid back in 2019

#

And I have no idea why the events are only just being created and send now ~3 years later

#

Is it just on this invoice, or are there other examples?

#

My only guess is that the invoice reconciliation didn't fire initially (i.e. marking it as paid), but no idea why its just happened now

#

Yeah looks like there was some inconsistent data between invoices/payments that was never reconciled, so we ran a job to fix that state

topaz ibex
#

This is the only case of it happening. I only caught it because of my badly programmed application haha

#

I'd deleted customer data when they cancelled subscriptions so when the payment came in it alerted me it couldn't find a relevant subscription.

#

So I can safely ignore this webhook, right?

foggy mirage
#

Yes, its safe to disregard

topaz ibex
#

Great, thanks for your help

foggy mirage
#

np! sorry for the time travelling webhook event

topaz ibex
#

โœŒ๏ธ

solar tapir
#

sorry for the time travelling webhook event
we could always blame it on Marvel/DC heroes/villains messing with space-time continuum ๐Ÿ™ˆ