Handling Payment Response
Check Payment Status
Step 3B.1
Consume webhooks asynchronously
Step 3B.2.
Check Payment Status
Step 3B.3.
Display Payment Status
To understand how to handle payment status, refer to the flow diagram below, and for more information on different order statuses and their handling, refer here
After the completion of every payment/refund, Juspay will provide direct notification to your server regarding the event. These are called Webhooks.
You must configure a valid HTTPS endpoint that is reachable from our servers to consume these notifications. Our servers will push data using POST calls to your endpoint.
Click here for Detailed Webhook Specifications
After receiving redirection response, it is mandatory to do a Server-to-Server Order Status API call to determine the final payment status. Please ensure that you verify the order ID and transaction amount.
Once the payment status is determined via the API, the final status should be displayed to the user. This screen needs to be handled by the merchant.