Skip to main content

scanQRCode

Note
Please contact Zalopay Team to be granted permission to use this functionality.

Supported Version

zpa
Only supported in Zalopay App

Description

Scan the QR code and return the result to Merchant app

Parameters

N/A

Return Value

ParamData typeDescription
contentstringData scanned from QR code (url, money transfer code,...)

Error Code

N/A

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.Device
.scanQRCode()
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

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