aboutsummaryrefslogtreecommitdiff
path: root/testdata
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 /testdata
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 'testdata')
-rw-r--r--testdata/merchant/inquiry_test.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/testdata/merchant/inquiry_test.txt b/testdata/merchant/inquiry_test.txt
new file mode 100644
index 0000000..c597b22
--- /dev/null
+++ b/testdata/merchant/inquiry_test.txt
@@ -0,0 +1,21 @@
+>>> request.json
+{
+ "merchantOrderId": "1",
+ "paymentMethod": "BT",
+ "productDetails": "Payment example using VA Bank Permata",
+ "email": "test@example.com",
+ "customerVaName": "John Doe",
+ "paymentAmount": 10000
+}
+
+<<< response.json
+{
+ "responseCode": "",
+ "responseDesc": "",
+ "merchantCode": "[redacted]",
+ "reference": "$ref",
+ "paymentUrl": "$payment_url",
+ "vaNumber": "$va",
+ "qrString": "",
+ "amount": "10000"
+}