#tsr_webhooks

1 messages ¡ Page 1 of 1 (latest)

sharp violetBOT
#

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

📝 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.

  • tsr_api, 17 hours ago, 11 messages
lone mountain
#

Either of them can be sent first

polar hill
#

When verifying payment success, which event should we listen for: checkout session completion or payment intent success?

lone mountain
polar hill
#

okay

#

Is it possible to simulate a failed checkout session?

lone mountain
#

Customer will be able to re-attempt the payment again if there is any failure. There is no failed Checkout Session per se, but only expiration of a checkout session if the customer doesn't make any successful payment before its expiry

polar hill
#

That means we only need to listen for checkout.session.completed.?

lone mountain
#

Have you read the guide I shared above? The guide recommend listening to checkout.session.completed, checkout.session.async_payment_succeeded and checkout.session.async_payment_failed events.

checkout.session.async_* is for the outcomes async payment methods in case if you enable any of them.

polar hill
#

Got it! I'll update our implementation to include checkout.session.async_payment_succeeded/failed events

lone mountain
#

Sounds good!

polar hill
#

one last question, Can we identify the region or country associated with the user's payment?

#

from which country user did payment...

lone mountain
#

The country where the customer makes the payment from isn't available for Checkout Session.

The next best will be the country of the payment method, but it might not be ideal. Customer may be in the United States, but using Canada card. For example, the country of the card can be found in: https://docs.stripe.com/api/payment_methods/object#payment_method_object-card-country

polar hill
#

Okay, thanks