Create QR code
Makes a QR code image from text or a VietQR payment
Parameters
Section titled “Parameters”mode
Mode · string · required · default text · one of text, vietqr
Plain text / URL, or a bank transfer QR (VietQR).
text
Text · string · optional
The text or link inside the QR code.
Shown when mode is text.
bankBin
Bank (BIN) · string · optional
Shown when mode is vietqr.
accountNumber
Account number · string · optional
Shown when mode is vietqr.
accountName
Account name · string · optional
Shown when mode is vietqr.
amount
Amount · number · optional · range 0 – …
Shown when mode is vietqr.
message
Message · string · optional
Shown when mode is vietqr.
size
Size · integer · optional · default 512 · range 64 – 2048
margin
Margin · integer · optional · default 2 · range 0 – 16
errorCorrection
Error correction · string · optional · default M · one of L, M, Q, H
into
Into field · string · optional · default data
Outputs
Section titled “Outputs”main