aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-01-31 16:31:27 +0700
committerShulhan <ms@kilabit.info>2023-01-31 17:17:02 +0700
commit3153c1d5c2d43212a3c26c11f5a9567e68d95db2 (patch)
tree54196b21b1013ff4d8ecb9ab8d452e1411faf331
parent4159ddbf654ca4ee493ec5da1916f0cea9119777 (diff)
downloadduitku-3153c1d5c2d43212a3c26c11f5a9567e68d95db2.tar.xz
all: add options for merchant code and its API key
We add additional merchant code and API key for Indomaret transaction.
-rw-r--r--client_options.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/client_options.go b/client_options.go
index 211eea6..e5d7932 100644
--- a/client_options.go
+++ b/client_options.go
@@ -14,6 +14,23 @@ type ClientOptions struct {
Email string
ApiKey string
+ // The merchant code is the project code obtained from the Duitku
+ // merchant page.
+ // This code is useful as an identifier of your project in each
+ // request using the /merchant/* APIs.
+ // You can get this code on every project you register on the
+ // [merchant portal].
+ //
+ // [merchant portal]: https://passport.duitku.com/merchant/Project
+ MerchantCode string
+
+ // MerchantApiKey The API key for signing merchant related request.
+ MerchantApiKey string
+
+ // Merchant code and API key for payment through Indomaret.
+ IndomaretMerchantCode string
+ IndomaretApiKey string
+
// The hostname extracted from ServerUrl.
host string