Skip to main content

openPhone

Supported Version

zpa
Started support in Zalopay App from version 8.26.0

Description

Allows the app to open a call screen for a specific phone number

Parameters

ParamData typeRequiredDescription
phonestringYesTarget phone number

Return Value

N/A

Error Code

Error CodeDescription
011201Invalid phone number
011202Cannot 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" }