Skip to content

Commit a200332

Browse files
committed
Add method of kind qrcode
1 parent be317c5 commit a200332

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Generate ~~and validate~~ payments of Brazil Instant Payment System (Pix), making fast and simple to handle charges and proccess then in your project.
66

7-
**UNDER DEVELOPMENT** *** Becareful ***
7+
**UNDER DEVELOPMENT - Becareful**
88

99
Example implementation.
1010
```golang

pix/const.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package pix
33
const (
44
//EmvSchema
55
TAG_INIT = "00"
6+
TAG_INIT_METHOD = "02"
67
TAG_MAI = "26"
78
TAG_MCC = "52"
89
TAG_TRANSACTION_CURRENCY = "53"

pix/pix.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func (p *Pix) GenPayload() string {
3838
case STATIC:
3939
tags = []string{
4040
p.getValue(TAG_INIT, "01"),
41+
p.getValue(TAG_INIT_METHOD, "11"),
4142
p.getValue(TAG_MAI, p.generateMAI()),
4243
p.getValue(TAG_MCC, "0000"),
4344
p.getValue(TAG_TRANSACTION_CURRENCY, "986"),
@@ -51,6 +52,7 @@ func (p *Pix) GenPayload() string {
5152
case DYNAMIC:
5253
tags = []string{
5354
p.getValue(TAG_INIT, "01"),
55+
p.getValue(TAG_INIT_METHOD, "11"),
5456
p.getValue(TAG_MAI, p.generateMAI()),
5557
p.getValue(TAG_MCC, "0000"),
5658
p.getValue(TAG_TRANSACTION_CURRENCY, "986"),

0 commit comments

Comments
 (0)