From 4856bd4d731ac9c1c2f19044cbd82d387a855e87 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Jul 2018 11:14:38 +0700 Subject: [PATCH] Fix APIEnvType on Simplepay --- example/simplepay/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/simplepay/main.go b/example/simplepay/main.go index 27d56a6..1d17aa5 100644 --- a/example/simplepay/main.go +++ b/example/simplepay/main.go @@ -48,7 +48,7 @@ func setupMidtrans() { midclient = midtrans.NewClient() midclient.ServerKey = "VT-server-7CVlR3AJ8Dpkez3k_TeGJQZU" midclient.ClientKey = "VT-client-IKktHiy3aRYHljsw" - midclient.ApiEnvType = midtrans.Sandbox + midclient.APIEnvType = midtrans.Sandbox coreGateway = midtrans.CoreGateway{ Client: midclient,