Device Module: appInfo Function (HiTechPay SDK)#
Description#
Retrieves information about the HiTechPay application and its environment.Parameters#
Return Value#
| Param | Data type | Description |
|---|
| environment | string | Application environment; one of 'develop', 'staging', 'production' |
| platform | string | HiTechPay application type; one of 'HTP' (HiTechPay App), 'HTP_INT' (HiTechPay Integration in Partner App) |
| os | string | Platform the app is running on; values: 'IOS', 'ANDROID', 'WEB' |
| appVersion | string | HiTechPay application version |
| userAgent | string | The webview's User Agent string |
| isIframe | boolean | true if this MiniApp was developed by a Partner, false otherwise |
Error Code#
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