#tarky_webhooks

1 messages ¡ Page 1 of 1 (latest)

sharp coveBOT
#

👋 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/1308481942869774396

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

drifting pelican
#

Hello! No, there's no event or notification for that happening.

north quartz
#

Is there any workaround for this?

drifting pelican
#

What exactly are you trying to do?

north quartz
#

Whenever an user starts a checkout session, I am saving some data into my db, if the users cancels the checkout session (by going back) I want to remove this data

#

I don't see any event being fired

drifting pelican
#

That's not really how Checkout or, really, the web is designed to work. There's no reliable way to detect such a thing. What data is being written? Why do you want to remove it if they go back?

north quartz
#

I am just creating a record with a status of pending before the user starts the checkout, if the checkout is successfull, I update this record to active, but what I wanted to do if the checkout failed or is canceled, I want to remove this record because there is not needed

drifting pelican
#

You should use the expired event you mentioned for that.

#

If someone goes back it doesn't cancel or invalidate the Checkout Session; they can go forward again and then complete Checkout, or they could save the URL and come back to it later.