File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ public function __construct()
4242 private function setBaseUrl ()
4343 {
4444 if (config ("pathao.sandbox " ) == true ) {
45- $ this ->baseUrl = "https://hermes -api.p-stageenv.xyz " ;
45+ $ this ->baseUrl = "https://courier -api-sandbox.pathao.com " ;
4646 } else {
47- $ this ->baseUrl = "https://api-hermes.pathaointernal .com " ;
47+ $ this ->baseUrl = "https://api-hermes.pathao .com " ;
4848 }
4949 }
5050
@@ -91,7 +91,6 @@ private function authenticate()
9191 ];
9292
9393 Storage::disk ('local ' )->put ('pathao_bearer_token.json ' , json_encode ($ accessToken ));
94-
9594 } catch (ClientException $ e ) {
9695 $ response = json_decode ($ e ->getResponse ()->getBody ()->getContents ());
9796 throw new PathaoException ($ response ->message , $ response ->code );
@@ -188,7 +187,5 @@ public function validation($data, $requiredFields)
188187 throw new PathaoCourierValidationException ("$ filed is required " , 422 );
189188 }
190189 }
191-
192190 }
193-
194191}
You can’t perform that action at this time.
0 commit comments