aboutsummaryrefslogtreecommitdiff
path: root/merchant_inquiry_response.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-01-31 21:24:56 +0700
committerShulhan <ms@kilabit.info>2023-02-01 15:07:22 +0700
commita5b22d2d0d018d7822a492979f36470e9f9cc78c (patch)
tree8050420b39923a9757b347b817c36ba711e0d8d7 /merchant_inquiry_response.go
parentb4b6699c27b04893c73c50553070682799220080 (diff)
downloadduitku-a5b22d2d0d018d7822a492979f36470e9f9cc78c.tar.xz
all: implement API for Merchant Inquiry
The MerchantInquiry API request payment to the Duitku system (via virtual account numbers, QRIS, e-wallet, and so on). Ref: https://docs.duitku.com/api/en/#request-transaction
Diffstat (limited to 'merchant_inquiry_response.go')
-rw-r--r--merchant_inquiry_response.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/merchant_inquiry_response.go b/merchant_inquiry_response.go
new file mode 100644
index 0000000..61f9f19
--- /dev/null
+++ b/merchant_inquiry_response.go
@@ -0,0 +1,28 @@
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package duitku
+
+// MerchantInquiryResponse contains response from MerchantInquiry.
+type MerchantInquiryResponse struct {
+ Response
+
+ // Indicates which project used in this transaction.
+ MerchantCode string `json:"merchantCode"`
+
+ // Reference number from Duitku (need to be save on your system).
+ Reference string `json:"reference"`
+
+ // Payment link for direction to Duitku payment page.
+ PaymentUrl string `json:"paymentUrl"`
+
+ // Payment number or virtual account.
+ VANumber string `json:"vaNumber"`
+
+ // QR string is used if you use QRIS payment (you need to generate QR
+ // code from this string).
+ QRString string `json:"qrString"`
+
+ // Payment amount.
+ Amount string `json:"amount"`
+}