File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ public function __construct()
42
42
private function setBaseUrl ()
43
43
{
44
44
if (config ("pathao.sandbox " ) == true ) {
45
- $ this ->baseUrl = "https://hermes -api.p-stageenv.xyz " ;
45
+ $ this ->baseUrl = "https://courier -api-sandbox.pathao.com " ;
46
46
} else {
47
- $ this ->baseUrl = "https://api-hermes.pathaointernal .com " ;
47
+ $ this ->baseUrl = "https://api-hermes.pathao .com " ;
48
48
}
49
49
}
50
50
@@ -91,7 +91,6 @@ private function authenticate()
91
91
];
92
92
93
93
Storage::disk ('local ' )->put ('pathao_bearer_token.json ' , json_encode ($ accessToken ));
94
-
95
94
} catch (ClientException $ e ) {
96
95
$ response = json_decode ($ e ->getResponse ()->getBody ()->getContents ());
97
96
throw new PathaoException ($ response ->message , $ response ->code );
@@ -188,7 +187,5 @@ public function validation($data, $requiredFields)
188
187
throw new PathaoCourierValidationException ("$ filed is required " , 422 );
189
188
}
190
189
}
191
-
192
190
}
193
-
194
191
}
You can’t perform that action at this time.
0 commit comments