---
page_source: https://juspay.io/in/docs/ec-headless/cordova/base-sdk-integration/handling-payment-response
page_title: 6. Handling Payment Response
---


## 6. Handling Payment Response




### Step 6.1. Check Payment Status


After receiving process response from SDK, it is mandatory to do a Server-to-Server [Order Status API call](https://docs.juspay.in/ec-headless/cordova/base-sdk-integration/order-status-api) 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.

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/hyper-checkout/payment_status_handling.png)






### Step 6.2. Consume webhooks asynchronously 


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](https://docs.juspay.in/ec-headless/cordova/base-sdk-integration/webhooks)




### Step 6.3. Display Payment Status


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

