4️MQTT Create VietQR Payment Code

Based on the received information, create a VietQR payment code for the transaction.

MQTT Request Generate VietQR Code

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

Message

Param
Type
Description

amount

Long

The amount to be received.

content

String

The content or description of the transfer.

bankAccount

String

The account number that will receive the funds.

bankCode

String

The code of the bank.

userBankName

String

The name of the bank account holder.

transType

String

The type of transaction.

orderId

String

The order number associated with the transaction.

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

{
  "amount": 15000,
  "content": "PaymentForOrder",
  "bankAccount": "1234567890",
  "bankCode": "MB",
  "userBankName": "ABC Corporation",
  "transType": "C",
  "orderId": "ORD12345XYZ",
  "terminalCode": "987",
  "serviceCode": "SVC001",
  "additionalData": [
    {
      "info": "AdditionalInfo1"
    }
  ]
}

Last updated