clearStorage
Description
Delete all of the data of miniapp stored 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
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" }