#noroup_webhooks
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/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.
- noroup_api, 3 hours ago, 4 messages
Hello, yes it does for synchronous payments.
I see there is a payment_status: paid field in the event?
For async payment methods you would listen for checkout.session.async_payment_succeeded
You may want to read https://docs.stripe.com/checkout/fulfillment if you haven't yet.
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?
No, the recommendation is to just listen for checkout.session.completed and then you can retrieve the Checkout Session and expand the payment_intent if you want that data: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-payment_intent
Otherwise if you really want to go from PaymentIntent --> Checkout Session you would list Checkout Sessions by PaymentIntent: https://docs.stripe.com/api/checkout/sessions/list#list_checkout_sessions-payment_intent
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
The easiest thing to do in that case is to set metadata on your Checkout Sessions via payment_intent_data.metadata: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
That will carry metadata down to the PaymentIntent
That is what I will do
And then you can check for that metadata in your Webhook handler