---
page_title: Sample Payloads
product: EC Headless
platform: Capacitor
page_source: https://juspay.io/in/docs/ec-headless/capacitor/resources/sample-payloads
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/ec-headless/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
{"success":false,"message":"Failed to fetch snippet"}
```

#### Shell Code Snippet:

```shell
{"success":false,"message":"Failed to fetch snippet"}
```



### 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
{"success":false,"message":"Failed to fetch snippet"}
```



### UUID



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


#### Shell Code Snippet:

```shell
{"success":false,"message":"Failed to fetch snippet"}
```


---

## See Also

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