Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alazark94 committed Oct 18, 2024
1 parent 4f8c16b commit af98741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vptrading/safaricom-ussd",
"description": "Easy package to ease your safaricom integration",
"license": "MIT",
"version": "1.0.3",
"version": "1.0.4",
"authors": [
{
"name": "Alazar Kassahun",
Expand Down
2 changes: 1 addition & 1 deletion src/SafaricomUssd.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function push(
$response = Http::withToken($auth['access_token'])
->post(config('safaricom-ussd.checkout_url'), $payload);

if (!$response->json('ResponseCode') !== 0) {
if ($response->json('ResponseCode') !== 0) {
throw new Exception($response->json('ResponseDescription'), $response->json('ResponseCode'));
}

Expand Down

0 comments on commit af98741

Please sign in to comment.