---
page_source: https://juspay.io/in/docs/ec-headless/cordova/resources/sample-payloads
page_title: Sample Payloads
---


## Sample Payloads



Refer to the below sample payloads based on your use-case. For more information, please refer to this [document](https://npmjs.com/package/hyper-sdk-plugin).


### isInitialised



Checks if current HyperSDK has been initialised. It should be used to check the HyperSDK instance state before calling process API.


#### Shell Code Snippet:

```shell
/**
Checks if current sdk instance has been initialised.
*/
public boolean isInitialised;


//Example usage
if (hyperServices.isInitialised()) {
    hyperServices.process(processPayload);
} else {
  //Intialise hyperInstance
}
```



### UUID



Sample snippets to generate uuid-v4 string. Used in HyperSDK as [requestId]


#### Shell Code Snippet:

```shell

# Please scroll down for a sample snippets to generate uuid-v4 string. Used in HyperSDK as [requestId]
UUID.randomUUID().toString()
```
