diff options
Diffstat (limited to 'merchant.go')
| -rw-r--r-- | merchant.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/merchant.go b/merchant.go new file mode 100644 index 0000000..7d7d2c5 --- /dev/null +++ b/merchant.go @@ -0,0 +1,27 @@ +// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info> +// SPDX-License-Identifier: GPL-3.0-or-later + +package duitku + +type Merchant struct { + // 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 + Code string `ini:"::code"` + + // The API key for signing merchant request. + ApiKey string `ini:"::api_key"` + + // The URL that will be used by Duitku to confirm payments made by + // your customers. + CallbackUrl string `ini:"::callback_url"` + + // The URL that Duitku will direct the customer after the transaction + // is successful or canceled. + ReturnUrl string `ini:"::return_url"` +} |
