scanQRCode
Note
Please contact Zalopay Team to be granted permission to use this functionality.Supported Version
zpa
Only supported in Zalopay AppDescription
Scan the QR code and return the result to Merchant app
Parameters
N/A
Return Value
Param | Data type | Description |
---|---|---|
content | string | Data 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"
}