diff options
| author | Shulhan <ms@kilabit.info> | 2022-11-07 14:37:48 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-11-07 14:45:00 +0700 |
| commit | 68176aa3af7296d64b041df280c23b13a7b2d72f (patch) | |
| tree | 715e4b300effdba2f416e70c749696fb7c04e167 | |
| parent | 30f4a32cc8db54449c922f7f69410241d6a9d710 (diff) | |
| download | duitku-68176aa3af7296d64b041df280c23b13a7b2d72f.tar.xz | |
all: update comments format and remove logging
| -rw-r--r-- | client.go | 2 | ||||
| -rw-r--r-- | rtol_inquiry.go | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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 { |
