@@ -41,8 +41,6 @@ public static function json($url, $data = [], $headers = [])
4141 {
4242 self ::setHeaders ([
4343 'Content-Type ' => 'application/json;charset=utf-8 ' ,
44- 'PAYTECH-ENV ' => \PayTech \Config::getEnv (),
45- 'User-Agent ' => \PayTech \PayTech::VERSION_NAME ,
4644 'API_KEY ' => \PayTech \Config::getApiKey (),
4745 'API_SECRET ' => \PayTech \Config::getApiSecret ()
4846
@@ -61,8 +59,6 @@ public static function post($url, $data = [], $headers = [])
6159 {
6260 self ::setHeaders ([
6361 'Content-Type ' => 'application/x-www-form-urlencoded;charset=utf-8 ' ,
64- 'PAYTECH-ENV ' => \PayTech \Config::getEnv (),
65- 'User-Agent ' => \PayTech \PayTech::VERSION_NAME ,
6662 'API_KEY ' => \PayTech \Config::getApiKey (),
6763 'API_SECRET ' => \PayTech \Config::getApiSecret ()
6864 ]);
@@ -77,8 +73,6 @@ public static function post($url, $data = [], $headers = [])
7773 public static function get ($ url , $ headers = [])
7874 {
7975 self ::setHeaders ([
80- 'PAYTECH-ENV ' => \PayTech \Config::getEnv (),
81- 'User-Agent ' => \PayTech \PayTech::VERSION_NAME ,
8276 'API_KEY ' => \PayTech \Config::getApiKey (),
8377 'API_SECRET ' => \PayTech \Config::getApiSecret ()
8478 ]);
0 commit comments