#Ish-checkout-integration
1 messages · Page 1 of 1 (latest)
Hello 👋
The failed transaction is usually reflected on the PaymentIntent associated with the Checkout and not on the Checkout Session itself
so it shouldn't be any different than what you see for successful checkout
I am not using PaymentIntent APIs any where
I am using "createCheckoutSession" and then redirect in FrontEnd . And then successURL is my serverside URL where in I call "retrieveCheckoutSession" API to see the payment status
In this flow how do I know if payment failed
payment_status values will be paid and unpaid only is it
Oh you might be using legacy checkout
Let me take a look, can you share your account ID?
is it advisable to use them ?
I am testing using test account only
I am in the implementation phase
Ah in that case, no you shouldn't be using that as it is quite old and might get deprecated in future.
We have a guide here for the new checkout flow, it walks you through step by step
https://stripe.com/docs/payments/accept-a-payment?platform=web
There are 2 tabs . one is "PrebuiltCheckout Page" and another one is "Custom Payment Flow"
"Prebuilt Checkout Page" uses ld legacy ones
and Custom Payment Flow uses "Payment Intent" right
"Prebuilt Checkout Page" also uses PaymentIntent underneath
The difference is that prebuilt checkout flow let's you integrate with Stripe hosted payment page vs "custom flow" where you use Stripe Elements and build your own page
Can you share your account ID so that I can make sure you're running the legacy checkout?
Ish-checkout-integration
@timid widget https://dashboard.stripe.com/settings/user at the bottom of that page you should see acct1_123456
I did not add any account details
So I dont think so I have one
because I couldnot see anything like that
Visit https://dashboard.stripe.com/test/logs and then give me one of those request ids req_123456
Okay so yes you do use Checkout. I read the exchanges but I don't really understand what your exact question is and what problem(s) you are experiencing
Am I using legacy one ?
I got a sessionId and sessionURL. I did the payment using 42424242424242 . Its all successful
When I retrieve the session, using sessionID , I got the paymentStatus as paid
How do I check error scenarios and what will "retrieveSession" error responses will be
We have numerous test card numbers all listed on https://stripe.com/docs/testing#cards and you can use any of those to simulate failed payments. Try those to see what happens