getStorageAllItem
Description
Get all the data that miniapp is saving in local storage of webview of Zalopay App
Parameters
Param | Data type | Required | Description |
---|---|---|---|
appId | number | Yes | ID of the mini app, registered via Merchant Portal |
Return Value
Param | Data type | Description |
---|---|---|
items | Record<string, string> | All of miniapp's data |
Error Code
N/A
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Storage
.getStorageAllItem({ appId: -9999 })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{
"items": {
"datacodeId": "DC10"
},
"status": "success"
}