Skip to content

Commit

Permalink
fix saman type casting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
roshedgostarandev1 committed Dec 22, 2019
1 parent 7a9c4bd commit c51a2e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Drivers/Saman/Saman.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ public function purchase()
$this->settings->apiPurchaseUrl
);

$response = (int) $soap->RequestToken($data['MID'], $data['ResNum'], $data['Amount']);
$response = $soap->RequestToken($data['MID'], $data['ResNum'], $data['Amount']);

if ($response < 0) { // if something has done in a wrong way
$status = (int) $response;

if ($status < 0) { // if something has done in a wrong way
$this->purchaseFailed($response);
}

Expand Down

0 comments on commit c51a2e9

Please sign in to comment.