Skip to content

Commit

Permalink
Add x-api-version for xendit ewallet. Bumpup xendit-go library
Browse files Browse the repository at this point in the history
Signed-off-by: Imre Nagi <imre.nagi2812@gmail.com>
  • Loading branch information
imrenagi committed Oct 17, 2020
1 parent e1f9781 commit 408eb19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gateway/xendit/ewallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ func NewEWalletRequest(inv *invoice.Invoice) *EWalletRequestBuilder {

b := &EWalletRequestBuilder{
request: &ewallet.CreatePaymentParams{
ExternalID: inv.Number,
XApiVersion: "2020-02-01",
ExternalID: inv.Number,
},
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/stretchr/objx v0.2.0 // indirect
github.com/stretchr/testify v1.6.0
github.com/veritrans/go-midtrans v0.0.0-20200303064216-54da2d269748
github.com/xendit/xendit-go v0.3.0
github.com/xendit/xendit-go v0.4.1-0.20201006160855-28eaa35b35d5
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect
gopkg.in/yaml.v2 v2.2.8
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
github.com/xendit/xendit-go v0.3.0 h1:3xq3n4HszCONYf23DF8BRXQ1VIMVFROXAB+1GdzZx6M=
github.com/xendit/xendit-go v0.3.0/go.mod h1:LoyNAWrlHh68e4pguT3KmQzphY1nlQGlSRcMdzp6ARo=
github.com/xendit/xendit-go v0.4.1-0.20201006160855-28eaa35b35d5 h1:YDeZT9+vREUeVgY+B9LmS7l1ZEH+vLQ7Mm7rY1ImkuA=
github.com/xendit/xendit-go v0.4.1-0.20201006160855-28eaa35b35d5/go.mod h1:LoyNAWrlHh68e4pguT3KmQzphY1nlQGlSRcMdzp6ARo=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
Expand Down

0 comments on commit 408eb19

Please sign in to comment.