#jcrags_api

1 messages ยท Page 1 of 1 (latest)

steel valveBOT
#

๐Ÿ‘‹ 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/1230538983256227961

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

little hedgeBOT
manic thorn
#

Hi there ๐Ÿ‘‹ hm, offhand I'm a little surprised you'd see both Event types, but I'm not entirely certain that's unexpected. I'm happy to take a closer look.

#

The Checkout Session from the request you shared seems to have only emitted a checkout.session.expired Event. Can you share the ID of a checkout.session.completed Event that you received for an expired session?

narrow zinc
#

Oh I think you are right, it actually never did send this event, but I was logging the event to the error_log() inside the case statement, but I now notice I forgot to add a break; to the one above it, which is causing the confused behaviour. It seems to be just a code error on my part. Thanks to you verifying it doesn't normally send both of them, I now know that this should work as intended. Thanks!

manic thorn
#

Any time! Glad to hear you were able to get to the bottom of it!