#ayush_api
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/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.
- ayush_api, 34 minutes ago, 26 messages
- ayush_docs, 2 hours ago, 25 messages
- ayush_code, 4 hours ago, 34 messages
- ayush_custom-connected-account, 22 hours ago, 45 messages
Hey, how are you doing?
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
Generally, webhook events. We deal with this in a couple of places in the documentation, but the guide below is aimed at checkout fulfillment:
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
here is where our list of event types is enumerated: https://docs.stripe.com/api/events/types
Yep! I'd recommend starting with the webhook builder here
and starting with that code
Perfect, thank you so much!