Skip to content

Commit ae4dad7

Browse files
fix: new baseurl from pathao-dev-api-doc
1 parent e737383 commit ae4dad7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Apis/BaseApi.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ 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 {
4747
$this->baseUrl = "https://api-hermes.pathaointernal.com";
4848
}
@@ -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
}

0 commit comments

Comments
 (0)