#noroup_webhooks

1 messages ¡ Page 1 of 1 (latest)

hidden sigilBOT
#

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

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

high ruin
#

Hello, yes it does for synchronous payments.

astral umbra
#

I see there is a payment_status: paid field in the event?

high ruin
#

For async payment methods you would listen for checkout.session.async_payment_succeeded

astral umbra
# high ruin Yes

That is fine, that just indicates that the payment went through successfully? That is all I need

#

I see when a checkout succeeds, there is a payment_intent.succeeded and a checkout.session.completed that rolls through the webhook.

In Payment_intent.succeeded webhook, is there any field that indicates that this payment intent is from the checkout page?

high ruin
astral umbra
#

The problem is, I have an app where I am already listening to payment_intent succeeded. I need to distinguish if the payment came from my app, or the web checkout page

high ruin
#

That will carry metadata down to the PaymentIntent

astral umbra
#

That is what I will do

high ruin
#

And then you can check for that metadata in your Webhook handler