From 3e134f258aab6d3762ab771aa268d58cc6d3d095 Mon Sep 17 00:00:00 2001 From: Ahmad Tantowi Date: Mon, 9 Jun 2025 11:42:54 +0700 Subject: [PATCH] Fix incorrect api key usage to get bin number --- coreapi/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/client.go b/coreapi/client.go index 9b0d438..8bf2c44 100644 --- a/coreapi/client.go +++ b/coreapi/client.go @@ -172,7 +172,7 @@ func (c Client) GetBIN(binNumber string) (*BinResponse, *midtrans.Error) { err := c.HttpClient.Call( http.MethodGet, fmt.Sprintf("%s/v1/bins/%s", c.Env.BaseUrl(), binNumber), - &c.ClientKey, + &c.ServerKey, c.Options, nil, resp,