#ayush_api

1 messages ¡ Page 1 of 1 (latest)

ripe bridgeBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sudden plover
#

Hey, how are you doing?

granite robin
#

Hi there

#

Doing well, thank you. Yourself?

sudden plover
#

Doing great as well.

#

To summarize my question here, I want to know whats the best practice to update my CRM/Backend at the end of a Checkout session

#

Be it a success/cancel or someone quit in the middle

granite robin
#

So, for example, if a payment fails because of a decline, you'll get a webhook event for that, and if the customer abandons the checkout session, it will expire in 24 hours and you'll get a checkout.session.expired event, and if it succeeds, you'll also be alerted by one of several possible webhook events, depending on your specific setup

sudden plover
#

And I need to create a webhook handler for this?

granite robin
#

Yep! I'd recommend starting with the webhook builder here

#

and starting with that code

sudden plover
#

Perfect, thank you so much!