File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 44
55Generate ~~ 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
99Example implementation.
1010``` golang
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package pix
33const (
44 //EmvSchema
55 TAG_INIT = "00"
6+ TAG_INIT_METHOD = "02"
67 TAG_MAI = "26"
78 TAG_MCC = "52"
89 TAG_TRANSACTION_CURRENCY = "53"
Original file line number Diff line number Diff 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" ),
You can’t perform that action at this time.
0 commit comments