#KhullaSaand
1 messages · Page 1 of 1 (latest)
Hello 👋
Can you share the checkout session ID or PaymentIntent ID where you see this?
but after successful payment I get payment status as unpaid
Also where exactly do you get/see this?
Sure, this is the session id - cs_test_a1NmlN41TlS8shDqndfJbcHrqh1Hdg9Ywg0aCJZYThaFguTQ1GD9rb3I5q
And this is the payment intent id - pi_3MqxWLQ8SSaFRbNt0meJYQ72
When I complete my payment with hosted checkout and try to fetch session with API and check payment_status, it's showing unpaid
Hmm okay, how long are you waiting before you try to fetch the session status?
So, basically I've set success URL, so once payment completed on hosted checkout, it'll redirect me to success page and I'm fetching session status at start of success page
Ah gotcha. Are you following this flow?
https://stripe.com/docs/payments/checkout/custom-success-page
Yes
Gotcha. Ah I think its due to ACH Direct Debit being a delayed notification payment method.
https://stripe.com/docs/payments/ach-debit
https://stripe.com/docs/payments/payment-methods#payment-notification
You'd likely want to listen to webhook events in order to receive confirmation of payment succeeding
So I need to setup webhook to listen payment status?
That's correct. The other option is that you poll the API. However, with delayed payment methods such as ACH the status changes asynchronously.
So there's no fixed amount of time. So relying on webhooks is better
Cool, thanks for your help