Skip to main content

Storage

Overview about Storage Module

Provides functions for storing miniapp's data in the webview of Zalopay App. Each miniapp is allocated 4KB of memory space.

List of supported SDK functions

FunctionDescription
getStorageItemGet the value of data saved in local storage based on key and appId attributes
setStorageItemStore data into the storage in the form key: value
getStorageAllItemGet all the data that miniapp is saving in local storage of webview of Zalopay App
removeStorageItemDelete the value of a data saved in local storage based on key and appId attributes
clearStorageDelete all of the data of miniapp stored in local storage of webview of Zalopay App
getStorageInfoGet information about the memory storage of a miniapp