openPhone
Supported Version
zpa
Started support in Zalopay App from version 8.26.0Description
Allows the app to open a call screen for a specific phone number
Parameters
Param | Data type | Required | Description |
---|---|---|---|
phone | string | Yes | Target phone number |
Return Value
N/A
Error Code
Error Code | Description |
---|---|
011201 | Invalid phone number |
011202 | Cannot open Phone call app |
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Device
.openPhone({ phone: "0912345678" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }