#KhullaSaand

1 messages · Page 1 of 1 (latest)

solid moatBOT
tender python
#

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?

agile wing
#

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

tender python
#

Hmm okay, how long are you waiting before you try to fetch the session status?

agile wing
#

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

tender python
agile wing
#

Yes

tender python
agile wing
#

So I need to setup webhook to listen payment status?

tender python
#

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

agile wing
#

Cool, thanks for your help