5️MQTT Receive VietQR Payment Code

Send a response back to MQTT Generate VietQR Code that was created along with related information.

MQTT Request Generate VietQR Code

mqtt://<vietqr-port>/vietqr/response/{terminalCode}

Message

ParamTypeDescription

bankCode

String

The code of the bank.

bankName

String

The name of the bank.

bankAccount

String

The account number that will receive the funds.

userBankName

String

The name of the bank account holder.

amount

Long

The amount to be received.

content

String

The content or description of the transfer.

qrCode

String

The QR code represented as a string.

orderId

String

The order number associated with the transaction.

imgId

String

An image of the QR code.

existing

String

Verify if the transaction exists in the VietQR system.

transactionId

String

The ID of the transaction.

transactionRefId

String

The reference code for the transaction.

qrLink

String

A link to view the QR code.

terminalCode

String

The code of the sales point or store.

serviceCode

String

The code of the product.

additionalData

List<Object>

Any extra information the partner wants to store with the transaction.

Sample

{
  "bankCode": "MB",
  "bankName": "MB Bank",
  "bankAccount": "1234567890",
  "userBankName": "XYZ Ltd",
  "amount": "50000",
  "content": "SampleTransactionDescription",
  "qrCode": "00020101021138540010A00000072701240006970422011012345678900208QRIBFTTA53037045405200005802VN62350831SampleTransactionDescription6304AAB8",
  "imgId": "abcd1234-5678-90ef-ghij-klmn01234567",
  "existing": 1,
  "transactionId": "",
  "transactionRefId": "ABC1234567890XYZ",
  "qrLink": "https://vietqr.vn/test/qr-generated?token=ABC1234567890XYZ",
  "terminalCode": "987",
  "serviceCode": "SVC002",
  "additionalData": [
    {
      "info": "AdditionalInfo1"
    }
  ]
}

Last updated