HiTechPAY API Docs
API ExplorerMini AppSDK
API ExplorerMini AppSDK
  1. Mini App
  • Overview
  • Device
    • openCamera
    • chooseImage
    • downloadImage
    • scanQRCode
    • appInfo
    • setVolume
    • setBrightness
    • setFlashlight
  1. Mini App

Overview

Introduction#

HiTechPay MiniApp SDK provides functions for a Merchant's Web application to directly interact with or provide information related to navigation, user interface, user details, etc., on the HiTechPay application and HiTechPay and HiTechPos MiniApp within the HiTechPay and HiTechPos application.

Terminology#

zpa (HiTechPay App): The function can only be used in the HiTechPay app (Android/iOS).
zpi (HiTechPay Integration in HiTechPos and HiTechPay App): The function can only be used in the HiTechPay MiniApp inside the HiTechPay app.
android: The function can only be used in the HiTechPay app on Android.
ios: The function can only be used in the HiTechPay app on iOS.

Integration & Usage Instructions#

Integrate SDK via CDN#

Include the corresponding SDK link in your web page:

MiniApp SDK Usage#

Merchant applications invoke SDK functions in the format:
window.zlpSdk.[Category].[Function](params)
Example: Set title

Common Error Codes#

Error CodeDescription
000000Invalid parameter
000001Unknown error
000002Function not yet supported
000003Merchant's App not granted permission to use the function
000004Invalid App Id

Request Permission for SDK Functions#

Some SDK functions require permission.
Merchants must send a permission request to the HiTechPay team to use these functions.

Running Sample Apps with MiniApp SDK#

ZPA (HiTechPay App and HiTechPos):
Open hitechpay or hitechpos://launch/app/999 via deeplink on your mobile device
ZPI (HiTechPay in HiTechPay and HiTechPos App):
Launch https://socialdev.hitechpay.vn/spa/v2/sample-app inside the HiTechPay and HiTechPos application

Test Applications#

Merchants can download various HiTechPay and HiTechPos test application versions from
HiTechPay's Test Wallets Page

Modified at 2025-12-04 10:27:01
Next
Device
Built with