diff --git a/ThinkPHP/Library/Org/SumaPay/Config.class.php b/ThinkPHP/Library/Org/SumaPay/Config.class.php index 4c8c2cde..52a32e3c 100644 --- a/ThinkPHP/Library/Org/SumaPay/Config.class.php +++ b/ThinkPHP/Library/Org/SumaPay/Config.class.php @@ -10,6 +10,13 @@ class Config 'totalBizType' => 'BIZ01106', ]; + /* private static $params = [ + 'baseUrl' => 'https://www.sumapay.com', + 'merchantCode' => '4610000027', + 'secretKey' => 'yT6tyOw0R0QqCccnChQyd4YJKKkM5czM', + 'totalBizType' => 'BIZ01104', + ]; */ + public static function get($key, $default = null) { return self::$params[$key] ?? $default; diff --git a/ThinkPHP/Library/Org/SumaPay/Request/Request.class.php b/ThinkPHP/Library/Org/SumaPay/Request/Request.class.php index 572edd2b..a6639494 100644 --- a/ThinkPHP/Library/Org/SumaPay/Request/Request.class.php +++ b/ThinkPHP/Library/Org/SumaPay/Request/Request.class.php @@ -49,7 +49,7 @@ class Request } public function getUrl() { - return Config::get('base_url') . $this->url; + return Config::get('baseUrl') . $this->url; } private function strToEncoding($str, $encoding) {