Vietqr
Go-based library enables encoding and decoding for VietQR
Install / Use
/learn @sunary/VietqrREADME
vietqr
This Go-based library enables encoding and decoding for VietQR, a standardized QR code solution for payment and transfer services across Vietnam's NAPAS network. Once encoded, the QR code can be further customized using any QR code generator that converts text to QR format.
VietQR serves as a unified brand identity for QR-based payments and transfers, seamlessly processed through the NAPAS network, member banks, payment intermediaries, and domestic and international partners. It complies with the EMV Co. QR payment standards and adheres to foundational QR code standards established by the State Bank of Vietnam.
Sample
package main
import (
"github.com/sunary/vietqr"
)
func main() {
println("encode", vietqr.Encode(vietqr.TransferInfo{
BankCode: vietqr.TECHCOMBANK,
BankNo: "9796868",
Message: "gen by sunary/vietqr",
}))
info, err := vietqr.Decode("00020101021138510010A00000072701210006970407010797968680208QRIBFTTA53037045802VN62240820gen by sunary/vietqr6304BE74")
if err != nil {
println("err", err.Error())
return
}
println("bank_code", info.BankCode)
println("bank_no", info.BankNo)
println("amount", info.Amount)
println("message", info.Message)
}
Run online: go.dev/play
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
