#Jason889
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you can list Checkout Sessions by PaymentIntent Id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what is the use-case here?
are you listening to payment_intent.succeeded event?
no just the checkout.session.completed event
if you don't mind me asking, what's the use-case you're having?
just simple payment using stripe checkout but I need to make reconciliation between the session and the pi
in my internal system
I need to make reconciliation between the session and the pi
why do you need both?
sorry for my questions here, I'm trying to understand the scenario so I could maybe advise you on doing things a bit differently
the purpose is track the payment failure during a checkout session
is it related to async payment methods?
no only cards
the checkout session won't be completed if the payment has failed
e.g. try this card 4000000000000002 in test mode
or any of these cards https://stripe.com/docs/testing#declined-payments
ok thanks and is there a report on Stripe to retrieved all the payment timelines(like in the payment details screen) for each payment ?
I'm not sure which API version you're using now, but if you're using our latest API version, a Payment Intent will no longer be created until the Checkout Session has been confirmed
once that's done you can look in your dashboard under the payment_intent and you will see the different payment failures
2022-08-01
ok