---
page_title: Sample Payloads
product: Hypercheckout
platform: Capacitor
page_source: https://juspay.io/in/docs/hyper-checkout/capacitor/resources/sample-payloads
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/hyper-checkout/llms.txt
---


## 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-capacitor).


### isInitialised



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


#### JavaScript Code Snippet:

```javascript
var { isInitialised } = await HyperServices.isInitialised();
```

#### 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
}
```



### Helper Method: Is Null



This is a helper method and can be used to check whether the `HyperServices` object is `null` at any particular moment. It is a blocking synchronous method and returns a `boolean` value.


#### JavaScript Code Snippet:

```javascript
var { isNull } = await HyperServices.isNull();
```



### 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()
```


---

## See Also

- [Transaction Status](https://juspay.io/in/docs/hyper-checkout/capacitor/resources/transaction-status)
- [Refunds](https://juspay.io/in/docs/hyper-checkout/capacitor/resources/refunds)
