#pinolero_webhook-payment-status
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1317162133590511616
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hi ๐ offhand I'm not thinking of any, but trying to think of any possible edge cases. Are you asking proactively or because you saw this happen?
I saw this happened. And trying to figure out why - of course, I'm looking through my code first.
Typically, I listen for the checkout.session.completed event, and specifically read the payment_status ("paid" or "unpaid") - based on that, I put the txn back into my CRM as unpaid or paid
That IS the correct behavior - correct?
Depends on the payment method types you're accepting. If you're accepting async/delayed notification ones, I'd also suggest listening for the related async payment events:
checkout.session.async_payment_succeeded
checkout.session.async_payment_failed
Can you share the ID of the Checkout Session where you saw this behavior?
Let me figure this out. I might have been looking at the wrong events ids.... Sorry, just looking at different things
No worries! We've very aware of how complex this all can be ๐
I think I figured it out. Lmao, let me just get it off my chest here ๐
I got a payment into my CRM as PAID - but then I looked into the Stripe Dashboard and see the same amount/customer in the "Failed" section. So I look into it further. I'm looking for the event that I captured and see it has a payment_status of "Paid" but then why is it in the Failed section? Turns out - two transaction for the same customer/amount. One txn failed. Customer tried again later on and successfully paid - which is the one my CRM actually captured.
It's the way we're looking/recording at the transaction/customers on Stripe...
Glad you were able to get that sorted out!