aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-01-31 21:24:45 +0700
committerShulhan <ms@kilabit.info>2023-02-01 11:02:09 +0700
commitb4b6699c27b04893c73c50553070682799220080 (patch)
tree2579635e56702449a6427ac0a8586524e2adf3b6 /testdata
parentd8b4bd20f3755a1f323c3a563167f240cdb11e23 (diff)
downloadduitku-b4b6699c27b04893c73c50553070682799220080.tar.xz
all: split the merchant into DefaultMerchant and PaymentMerchant
The PaymentMerchant will be used if the payment method during inquiry exist as the key in it; otherwise it will use DefaultMerchant
Diffstat (limited to 'testdata')
-rw-r--r--testdata/client_options_test.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/testdata/client_options_test.txt b/testdata/client_options_test.txt
new file mode 100644
index 0000000..5d4d34e
--- /dev/null
+++ b/testdata/client_options_test.txt
@@ -0,0 +1,39 @@
+>>> all.conf
+[duitku]
+server_url = https://sandbox.duitku.com
+disburse_user_id = 1111
+disburse_email = my@company.com
+disburse_api_key = abcd
+
+[default-merchant]
+code = DXXXX
+api_key = d3f4ult
+callback_url = https://example.com/callback
+return_url = https://example.com/payment
+
+## Payment using Indomaret use this merchant.
+[merchant "IR"]
+code = DYYYY
+api_key = 1ndom4r3t
+
+<<< all.json
+{
+ "ServerUrl": "https://sandbox.duitku.com",
+ "DefaultMerchant": {
+ "Code": "DXXXX",
+ "ApiKey": "d3f4ult",
+ "CallbackUrl": "https://example.com/callback",
+ "ReturnUrl": "https://example.com/payment"
+ },
+ "PaymentMerchant": {
+ "IR": {
+ "Code": "DYYYY",
+ "ApiKey": "1ndom4r3t",
+ "CallbackUrl": "https://example.com/callback",
+ "ReturnUrl": "https://example.com/payment"
+ }
+ },
+ "DisburseApiKey": "abcd",
+ "DisburseEmail": "my@company.com",
+ "DisburseUserID": 1111
+}