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

appInfo

Device Module: appInfo Function (HiTechPay SDK)#

Description#

Retrieves information about the HiTechPay application and its environment.

Parameters#

None

Return Value#

ParamData typeDescription
environmentstringApplication environment; one of 'develop', 'staging', 'production'
platformstringHiTechPay application type; one of 'HTP' (HiTechPay App), 'HTP_INT' (HiTechPay Integration in Partner App)
osstringPlatform the app is running on; values: 'IOS', 'ANDROID', 'WEB'
appVersionstringHiTechPay application version
userAgentstringThe webview's User Agent string
isIframebooleantrue if this MiniApp was developed by a Partner, false otherwise

Error Code#

N/A

Sample Code#

Sample Response#

{
  "data": {
    "environment": "develop",
    "platform": "HTP",
    "appVersion": "1.2.3",
    "os": "ANDROID",
    "userAgent": "Mozilla/5.0 (Linux; Android 12; HTP-DeviceX Build/HTP2025)",
    "isIframe": false
  },
  "status": "success"
}
Modified at 2025-12-04 10:59:15
Previous
scanQRCode
Next
setVolume
Built with