Initiate Payload
HyperSDK offers an easier client-side integration by unifying data and API calls.
Some part of the data required to complete operations which will be common and can be collected before HyperSDK is actually required to continue operation will be added as a part of Initiate payload.
Param Details
Key | Type | Required | Description |
---|---|---|---|
action | String | Yes | operation to be performed in the SDK. Should be initiate for this call. |
merchantId | String | Yes | Unique identifier associated with an account created by juspay. Can be obtained from juspay support team. |
clientId | String | Yes | Unique identifier associated with static resources assigned by juspay. Can be obtained from juspay support team. |
customerId | String | Yes | Any unique reference associated with your customer. |
environment | String | Yes | Juspay remote environment to be used for completing an operation. Possible values: <sandbox/prod> |
Input
{
"requestId" : "8cbc3fad-8b3f-40c0-ae93-2d7e75a8624a",
"service" : "in.juspay.hyperapi",
"payload" : {
"action" : "initiate",
"merchantId" : "<Merchant Id>",
"clientId" : "<Client Id>",
"customerId" : "<Customer Id>", //Any unique refrences to current customer
"environment" : "sandbox"|"prod",
}
}
Output
{
"service": "in.juspay.hyperapi",
"requestId": "8cbc3fad-8b3f-40c0-ae93-2d7e75a8624a",
"payload": {
"action": "initiate",
"status": "success"
},
"errorMessage": "",
"errorCode": "",
"error": false,
"event" : "initiate_result"
}
Updated almost 2 years ago