#KriJo
1 messages · Page 1 of 1 (latest)
Hello! What API version are you using? This was something that was changed as part of 2022-08-01, so if you're using that version (or anything later than that) then this behavior is expected: https://stripe.com/docs/upgrades#2022-08-01
A PaymentIntent is no longer created during Checkout Session creation in payment mode. Instead, a PaymentIntent will be created when the Session is confirmed.
👍
so ok
this works
but
how i should now identify by webhook witch checkout i'm completing
in invoice the payment intent was created at start and stored in the DB by me so i could achive that
but now?
Can you clarify - which webhook events are you listening for?
payment_intent_succeeded or checkout_session_completed for completed
but there is only payment_intent_failed when failed
this way i cannot determine if checkout failed
Ah, so your issue is that you want to trace back a payment_intent.payment_failed event back to the Checkout Session that is failing? Is there a reason you need to know whether the Checkout Session failed? The user can always attempt it again until the Checkout session expires
exacly
i dont know
If you do really want to link it back to the Checkout Session you can take the PaymentIntent ID and use it with the payment_intent filter when listing all Checkout Sessions (https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent)