Skip to content

Commit

Permalink
Merge pull request #47 from farayaz/46-add-bajet-tag-in-errors
Browse files Browse the repository at this point in the history
add bajet tag in errors
  • Loading branch information
mehrdadx10 authored May 28, 2024
2 parents 076da6c + f630ddf commit b33e1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gateways/TejaratBajet.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function request(
$url = '/customers/' . $nationalId . '/balance';
$result = $this->_request('get', $url, [], $headers);
if ($result['result']['balance'] < $amount) {
throw new LarapayException('عدم موجودی کافی: ' . number_format($result['result']['balance']));
throw new LarapayException('باجت: عدم موجودی کافی: ' . number_format($result['result']['balance']));
}

$url = '/customers/' . $nationalId . '/purchases/authorization?trackId=' . $id;
Expand Down Expand Up @@ -129,7 +129,7 @@ private function _request($method, $url, array $data = [], array $headers = [])
if (isset($result['detail'])) {
$message = $result['detail'];
}
throw new LarapayException($message);
throw new LarapayException('باجت: ' . $message);
} catch (ConnectionException $e) {
throw new LarapayException($this->translateStatus('connection-exception'));
}
Expand Down

0 comments on commit b33e1f7

Please sign in to comment.