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,