QR Payment
v1.0.0
Scan a QR code displayed on the terminal or show their own QR code to complete a payment.
QR Payment
Scan a QR code displayed on the terminal or show their own QR code to complete a payment.
Sequence Diagram
Process Flow
- User starts a transaction on the POS.
- POS creates a QrPaymentRequest() object.
- POS calls sendRequest() to send payment request.
- SDK sends the encoded request to Smart Terminal.
- Depending on the scan option:
- If customer scan, Smart Terminal generates QR code.
- If merchant scan, Smart Terminal launches front/back camera for scan purpose.
- Smart Terminal returns response
[305 : Scan QR]
to SDK. - POS calls receiveResponse() for response handling.
- SDK returns the response value.
- POS displays result on screen.
- Depending on the scan option:
- If customer scan, allow customer scan QR code from terminal.
- If merchant scan, user to use camera on Smart Terminal to scan QR code from customer’s device.
- Smart Terminals displays “Approved”.
- Smart Terminal returns response
[100 : Approved]
to SDK. You may refer to Response Codes. - POS calls receiveResponse() for response handling.
- SDK returns the response value.
- POS displays result on screen.