---
page_title: Sample Payloads
product: EC Headless
platform: iOS
page_source: https://juspay.io/in/docs/ec-headless/ios/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


### isInitialised



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


#### Swift Code Snippet:

```swift
/**
Checks if current sdk instance has been initialised.
*/
- (Boolean)isInitialised;

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

#### ObjectiveC Code Snippet:

```objectivec
/**
Checks if current sdk instance has been initialised..
*/
- (Boolean)isInitialised;

//Example usage
if ([hyperInstance isInitialised]) {
    [hyperInstance process:processPayload];
} else {
  //Intialize hyperInstance
}
```



### UUID



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


#### Swift Code Snippet:

```swift

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

#### ObjectiveC Code Snippet:

```objectivec

# Please scroll down for a sample snippets to generate uuid-v4 string. Used in HyperSDK as [requestId]
NSUUID.UUID.UUIDString;
```


---

## See Also

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