Skip to content

Commit

Permalink
Merge pull request #2 from AbiruzzamanMolla/main
Browse files Browse the repository at this point in the history
fix: new baseurl from pathao-dev-api-doc
  • Loading branch information
manchumahara committed Sep 20, 2023
2 parents e737383 + 3def2c1 commit 3a388aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Apis/BaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function __construct()
private function setBaseUrl()
{
if (config("pathao.sandbox") == true) {
$this->baseUrl = "https://hermes-api.p-stageenv.xyz";
$this->baseUrl = "https://courier-api-sandbox.pathao.com";
} else {
$this->baseUrl = "https://api-hermes.pathaointernal.com";
$this->baseUrl = "https://api-hermes.pathao.com";
}
}

Expand Down Expand Up @@ -91,7 +91,6 @@ private function authenticate()
];

Storage::disk('local')->put('pathao_bearer_token.json', json_encode($accessToken));

} catch (ClientException $e) {
$response = json_decode($e->getResponse()->getBody()->getContents());
throw new PathaoException($response->message, $response->code);
Expand Down Expand Up @@ -188,7 +187,5 @@ public function validation($data, $requiredFields)
throw new PathaoCourierValidationException("$filed is required", 422);
}
}

}

}

0 comments on commit 3a388aa

Please sign in to comment.