Skip to main content

clearStorage

Description

Delete all of the data of miniapp stored in local storage of webview of Zalopay App

Parameters

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

Return Value

N/A

Error Code

N/A

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.Storage
.clearStorage({ appId: -9999 })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

{ data: {}, status: "success" }