Skip to content

Commit

Permalink
Merge pull request #63 from farayaz/62-fix-mehriran-verify-bug
Browse files Browse the repository at this point in the history
fix mehriran verify bug
  • Loading branch information
mehrdadx10 committed Jul 14, 2024
2 parents e94410d + 05c4d48 commit 594b5e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Gateways/MehrIran.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public function verify(
if ($params['resp-code'] != '00') {
throw new LarapayException($this->translateStatus($params['resp-code']));
}

if ($params['transaction-id'] != $token) {
throw new LarapayException($this->translateStatus('id-missmatch'));
}
Expand All @@ -140,11 +139,10 @@ public function verify(
];
$data['sign'] = $this->sign($data);
try {
$result = $this->_request($url, $params);
$result = $this->_request($url, $data);
} catch (Exception $e) {
throw new LarapayException($e->getMessage());
}

if ($result['resp-code'] != '00') {
throw new LarapayException($this->translateStatus($result['resp-code']));
}
Expand Down

0 comments on commit 594b5e5

Please sign in to comment.