From 68176aa3af7296d64b041df280c23b13a7b2d72f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 7 Nov 2022 14:37:48 +0700 Subject: all: update comments format and remove logging --- client.go | 2 -- rtol_inquiry.go | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index b62ef22..c19f20e 100644 --- a/client.go +++ b/client.go @@ -299,8 +299,6 @@ func (cl *Client) RtolTransfer(inquiryReq RtolInquiry, inquiryRes RtolInquiryRes return nil, fmt.Errorf(`%s: %s`, logp, resHttp.Status) } - fmt.Printf(`%s: %s`, logp, resBody) - err = json.Unmarshal(resBody, &res) if err != nil { return nil, fmt.Errorf(`%s: %w`, logp, err) diff --git a/rtol_inquiry.go b/rtol_inquiry.go index 8b6fc4e..d4855ed 100644 --- a/rtol_inquiry.go +++ b/rtol_inquiry.go @@ -10,8 +10,10 @@ import ( // RtolInquiry contains request to initiate transfer from merchant to // customer's bank account using [Online Transfer]. // -// The signature formula is SHA256(email + timestamp + bankCode + -// bankAccount + amountTransfer + purpose + apiKey). +// The signature formula is: +// +// SHA256(email + timestamp + bankCode + bankAccount + amountTransfer + +// purpose + apiKey) // // [Online Transfer]: https://docs.duitku.com/disbursement/en/#online-transfer-inquiry-request type RtolInquiry struct { -- cgit v1.3