MCPcopy Index your code
hub / github.com/ducnpdev/vietqr

github.com/ducnpdev/vietqr @v1.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3 ↗ · + Follow
37 symbols 67 edges 14 files 22 documented · 59%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

VietQR - Golang

  • thư viện hỗ trợ mã QR để thanh toán thông qua NAPAS với ngôn ngữ lập trình Golang

Table of Contents

Napas Document

  • link document của napas: https://vietqr.net/portal-service/download/documents/QR_Format_T&C_v1.0_VN_092021.pdf

Chức Năng

  • hỗ trợ tạo ra qr để thanh toán( accountNo, amount, nội dung, ...)

Cài Đặt

go get github.com/ducnpdev/vietqr

Ví Dụ:

package main

import (
    "fmt"

    "github.com/ducnpdev/vietqr"
)

func main() {
    content := vietqr.GenerateViQR(vietqr.RequestGenerateViQR{
        MerchantAccountInformation: vietqr.MerchantAccountInformation{
            AccountNo: "999990335280715",
        },
        TransactionAmount: "505000",

        AdditionalDataFieldTemplate: vietqr.AdditionalDataFieldTemplate{
            Description: "test noi dungtest noi dungtest noi dungtest noi dung",
        },
        Mcc:          "5139",
        ReceiverName: "Cty ABC",
    })

    fmt.Println("content-main:", content)
}

Tách Các Filed Tag

  • golang vietqr detech qr.
0002
    01
0102
    12
3859
    0010
        A000000727
    0129
        0006
            970437
        0115
            999990335280715
        0208
            QRIBFTTA
5204
    5139
5303
    704
5406
    50500
5802
    VN
6217
    0813
        test noi dung
5907
    Cty ABC
6304
    33C4
  • detech qr trên mạnh:
0002010102125406930000
3857
    0010
        A000000727
    0127
        0006
            970437
        0113
            QR50317S75UDT
    0208
        QRIBFTTA
5303
    704
5802
    VN
6292
    0325
        TRUONG TIEU HOC NGHIA TAN
    0719
        02770002virtualNONE
    0836
        BYMII0HL5E AD87PI 03 2025 THT SON 4P
6304614A

License

MIT License

Extension points exported contracts — how you extend this code

Hash16 (Interface)
This file contains the CRC16 implementation of the go standard library hash.Hash interface [1 implementers]
libcrc.go

Core symbols most depended-on inside this repo

Update
called by 2
libcrc.go
Complete
called by 2
libcrc.go
genAdditionalDataFieldTemplate
called by 1
tag62.go
genAdditionalDataFieldTemplateTag08
called by 1
tag62.go
genTransactionCurrency
called by 1
tag53.go
genPointInitiationMethod
called by 1
tag01.go
MakeTable
called by 1
libcrc.go
Init
called by 1
libcrc.go

Shape

Function 23
Method 7
Struct 6
Interface 1

Languages

Go100%

Modules by API surface

libcrc.go17 symbols
tag38.go4 symbols
struct.go3 symbols
vietqr.go2 symbols
tag62.go2 symbols
tag63.go1 symbols
tag59.go1 symbols
tag58.go1 symbols
tag54.go1 symbols
tag53.go1 symbols
tag52.go1 symbols
tag01.go1 symbols

For agents

$ claude mcp add vietqr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact