@ -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;
@ -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) {