aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--merchant_inquiry_response.go11
-rw-r--r--testdata/merchant/inquiry_test.txt6
2 files changed, 12 insertions, 5 deletions
diff --git a/merchant_inquiry_response.go b/merchant_inquiry_response.go
index 61f9f19..4d6706d 100644
--- a/merchant_inquiry_response.go
+++ b/merchant_inquiry_response.go
@@ -5,8 +5,6 @@ package duitku
// MerchantInquiryResponse contains response from MerchantInquiry.
type MerchantInquiryResponse struct {
- Response
-
// Indicates which project used in this transaction.
MerchantCode string `json:"merchantCode"`
@@ -25,4 +23,13 @@ type MerchantInquiryResponse struct {
// Payment amount.
Amount string `json:"amount"`
+
+ // Status code transaction.
+ // - 00 - Success
+ // - 01 - Process
+ // - 02 - Failed/Expired
+ Code string `json:"statusCode"`
+
+ // Description that explain the status Code.
+ Message string `json:"statusMessage"`
}
diff --git a/testdata/merchant/inquiry_test.txt b/testdata/merchant/inquiry_test.txt
index 05262d7..dc20f4b 100644
--- a/testdata/merchant/inquiry_test.txt
+++ b/testdata/merchant/inquiry_test.txt
@@ -10,14 +10,14 @@
<<< response.json
{
- "responseCode": "",
- "responseDesc": "",
"merchantCode": "[redacted]",
"reference": "$ref",
"paymentUrl": "$payment_url",
"vaNumber": "$va",
"qrString": "",
- "amount": "10000"
+ "amount": "10000",
+ "statusCode": "00",
+ "statusMessage": "SUCCESS"
}
<<< tx_status_response.json