---
page_source: https://juspay.io/in/docs/upi-plugin-sdk/cordova/interaction-with-sdk/handle-sdk-response
page_title: Handle SDK Response
---


## Handle SDK Response




###   Handle Events from SDK


**HyperPaymentsCallbackAdapter** is an interface method to handle callbacks/outputs from sdk. HyperSDK uses a single point of communication(HyperPaymentsCallbackAdapter) with continuous events triggered during a payment lifecycle. Implement the highlighted code snippet in your app for proper handling of all events and status.



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: show_loader


This event implies merchant has triggered sdk and needs to show loader until UI is loaded.



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: hide_loader


This event implies that UI is loaded and loader can be stopped or hidden.



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: initiate_result


This event contains the response of `initiate` action.



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: process_result


This event contains the response of different `process` actions called. For process operations [Click Here](../ui-process-payloads/inapp-ui).



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: log_stream


This event contains the various Clickstream events that SDK provides to know the user actions in the application.

> **Warning**
> For enabling Clickstream events, logLevel key is mandatory in [intiate payload](../miscellaneous/additional-parameters). The value of this key should be 1.





#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```



###   Event: session_expired


This event is given when signature or clientAuthToken expires. For more details [Click Here](../miscellaneous/session-expiry).



#### Code Snippets: -

#### JavaScript Code Snippet:

```javascript
{"success":false,"message":"No Data found for the given path"}
```
