Select the appropriate model of ZaloPay integration
ZaloPay App receive order's information pay with QR Code method from AppClient.
For the sizeable orders, scanning QR codes would be ineffective. So, ZaloPay provides an API to create orders on the server-side. After calling this API, ZaloPay Server will return the responses containing orderurl
, then AppClient can use this orderurl
to generate QR Code.
Example:
The datapack received after creating an order successfully:
{
"zptranstoken": "190719000001129n9Z6V9O",
"orderurl": "https://qcgateway.zalopay.vn/openinapp?order=eyJ6cHRyYW5zdG9rZW4iOiIxOTA3MTkwMDAwMDExMjluOVo2VjlPIiwiYXBwaWQiOjU1M30",
"returncode": 1,
"returnmessage": ""
}
AppClient use the orderurl
field to generate QR code, ZaloPay App could acquire this QR code information to make payment.
https://qcgateway.zalopay.vn/openinapp?order=eyJ6cHRyYW5zdG9rZW4iOiIxOTA3MTkwMDAwMDExMjluOVo2VjlPIiwiYXBwaWQiOjU1M30
This is the QR code of the orderurl
above: