6. Handling Payment Response
Step 6.1.
Check Payment Status
Step 6.2.
Consume webhooks asynchronously
Step 6.3.
Display Payment Status
After receiving process response from SDK, 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 amount transaction.
To understand how to handle payment status, refer to the flow diagram below.
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 HTTP POST calls to your endpoint.
Click here for Detailed Webhook Specifications
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, it is not provided by the SDK