From 408eb194bd02f60fbeaa4d6480e151260de980a2 Mon Sep 17 00:00:00 2001 From: Imre Nagi Date: Sat, 17 Oct 2020 08:37:53 +0700 Subject: [PATCH] Add x-api-version for xendit ewallet. Bumpup xendit-go library Signed-off-by: Imre Nagi --- gateway/xendit/ewallet.go | 3 ++- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gateway/xendit/ewallet.go b/gateway/xendit/ewallet.go index 9ffde49..156bedf 100644 --- a/gateway/xendit/ewallet.go +++ b/gateway/xendit/ewallet.go @@ -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, }, } diff --git a/go.mod b/go.mod index 3d067f6..1c37f75 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index c9fea70..ba0a11a 100644 --- a/go.sum +++ b/go.sum @@ -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=