Skip to content

Commit 3a388aa

Browse files
authored
Merge pull request #2 from AbiruzzamanMolla/main
fix: new baseurl from pathao-dev-api-doc
2 parents e737383 + 3def2c1 commit 3a388aa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Apis/BaseApi.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)