Simulate VietQR generation in SePay Test mode

Generate a VietQR from a Test mode bank account or VA in SePay Test mode (sandbox): preview the QR, simulate a scan and confirm the transfer right in the UI.

||

Generating a VietQR in Test mode (chế độ thử nghiệm) produces a QR code from a Test mode bank account or VA, with a built-in scan-and-confirm simulation right in the UI. Use it to verify how the QR renders on your payment page before going to Live.

Summary
  • The QR is built from a bank account and VA in Test mode (unrelated to your Live account)
  • Three display templates: Thu gọn (Compact), Chỉ QR (QR only), Đầy đủ (Full)
  • A Mô phỏng chuyển khoản (Simulate transfer) button mocks a customer scanning the QR and confirming
  • The page returns the QR image (PNG), the QR URL and integration snippets for several languages

Open the Simulate VietQR page

Go to Test modeMô phỏng tạo mã VietQR (Simulate VietQR).

Simulate VietQR page in SePay Test mode
Click to expand
The Simulate VietQR page in Test mode with the input area and the QR preview panel

Form fields

FieldRequiredDescription
Bank accountYesPick from the accounts created in Test mode (created fresh or replicated from Live).
Virtual account (VA)ConditionalAppears after you pick an account. Required for OCB, KienLongBank, MSB (all account types) and BIDV (individual, business household); optional for the rest.
AmountNoVND, minimum 1,000, maximum 499,000,000. Enter as 100000 or 100.000. Leave blank to let the customer enter it when scanning.
Transfer contentNoUp to 200 characters, diacritics stripped automatically. As you type, the system detects payment codes per your code configuration and shows a result chip above the field.
QR templateYesThu gọn (Compact, default), Chỉ QR (QR only) or Đầy đủ (Full). Controls how the QR and the accompanying account info are displayed.
Payment code shortcuts

When you have an active payment-code template in Configuration, the QR page shows shortcut buttons above the Nội dung chuyển khoản (Transfer content) field. Click a shortcut to insert a valid code into the content.

Simulate VietQR form in Test mode with all fields filled
Click to expand
The filled form with the green chip showing the recognized payment code

When a VA is required

Some banks require the QR to carry a VA. The form locks the QR preview button until you select a VA:

BankAccount typeVA
OCBAll typesRequired
KienLongBankAll typesRequired
MSBAll typesRequired
BIDVIndividual, business householdRequired
BIDVBusinessOptional
Other banksAll typesOptional

The Quy tắc theo ngân hàng (Per-bank rules) button on the page opens a detail dialog listing the full VA conditions, transfer-content rules (for example VietinBank requires the SEVQR prefix), and QR URL parameter rules.

For per-bank rules and the full parameter list, see Generate VietQR.

Preview and simulate the QR scan

The right-hand panel updates whenever you change a value in the form:

  • The QR image in the center
  • Below it, an info table with the bank name, account number (or VA), account holder name, amount and transfer content
  • A Mô phỏng chuyển khoản (Simulate transfer) button at the bottom

Click Mô phỏng chuyển khoản (Simulate transfer) to open a mock phone screen:

  1. The camera screen shows the QR you just generated
  2. Confirm the scan to move to the transfer-confirmation screen with the fields pre-filled (amount, content), still editable
  3. Click Chuyển khoản (Transfer) to finish the simulation

After the simulation, a new transaction is recorded exactly as when simulating from the Simulate transaction page. Webhooks matching that account fire.

Mock phone screen simulating a VietQR scan in SePay Test mode
Click to expand
Simulating the scan and transfer confirmation through a Test mode VietQR

Differences from Live QR

AspectLiveTest mode
Source accountReal bank accountMock bank account / VA
Scanned with a real banking appBeneficiary info resolvesBeneficiary info does not resolve because the account/VA is mocked
TransferReal transfer, no simulationSimulate transfer in the UI, no real transfer
PurposeReceive real moneyVerify the QR display and transfer flow before going to Live
Test mode QR cannot receive real money

A QR generated in Test mode uses Test mode account parameters and is not linked to a real bank account. Scanning it with a real banking app returns an account-not-found error. Use the Mô phỏng chuyển khoản (Simulate transfer) button to mock the transaction.

Next