Skip to main content

openSMS

Supported Version

zpa
Started support in Zalopay App from version 8.26.0

Description

Open device's SMS messaging application

Parameters

ParamData typeRequiredDescription
phonestringYesTarget phone number
messagestringNoMessage content

Return Value

N/A

Error Code

Error CodeDescription
011301Cannot open SMS Messaging app

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.Device
.openSMS({ phone: "012345678", message: "Hello" })
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

{ data: {}, status: "success" }