QR Payment

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

  1. User starts a transaction on the POS.
  2. POS creates a QrPaymentRequest() object.
  3. POS calls sendRequest() to send payment request.
  4. SDK sends the encoded request to Smart Terminal.
  5. 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.
  6. Smart Terminal returns response [305 : Scan QR] to SDK.
  7. POS calls receiveResponse() for response handling.
  8. SDK returns the response value.
  9. POS displays result on screen.
  1. 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.
  2. Smart Terminals displays “Approved”.
  3. Smart Terminal returns response [100 : Approved] to SDK. You may refer to Response Codes.
  4. POS calls receiveResponse() for response handling.
  5. SDK returns the response value.
  6. POS displays result on screen.