Skip to main content

getStorageAllItem

Description

Get all the data that miniapp is saving in local storage of webview of Zalopay App

Parameters

ParamData typeRequiredDescription
appIdnumberYesID of the mini app, registered via Merchant Portal

Return Value

ParamData typeDescription
itemsRecord<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"
}