Skip to content

Commit

Permalink
add live base url
Browse files Browse the repository at this point in the history
  • Loading branch information
dipudey committed Sep 19, 2022
1 parent fd7416d commit bf2f0ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Apis/BaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function setBaseUrl()
if (config("paperfly.sandbox") == true) {
$this->baseUrl = "https://sandbox.paperfly-bd.com";
} else {
$this->baseUrl = "";
$this->baseUrl = "https://api.paperfly.com.bd";
}
}

Expand Down Expand Up @@ -98,8 +98,8 @@ public function send($method, $uri, $body = [])
return json_decode($response->getBody());
} catch (ClientException $e) {
$errorResponse = json_decode($e->getResponse()->getBody()->getContents());
$message = $errorResponse->error->message;
$errors = $response->errors ?? [];
$message = $errorResponse->error->message;
$errors = $response->errors ?? [];
throw new PaperflyException($message, $e->getCode(), $errors);
}
}
Expand Down

0 comments on commit bf2f0ba

Please sign in to comment.