Skip to content

Commit

Permalink
Merge pull request #53 from farayaz/52-add-card-in-irankish-verify-me…
Browse files Browse the repository at this point in the history
…thod

add card in IranKish verify method
  • Loading branch information
mehrdadx10 committed Jun 27, 2024
2 parents 62cb689 + feab3f8 commit a6e34c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gateways/IranKish.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function verify(
'responseCode' => null,
'retrievalReferenceNumber' => null,
'systemTraceAuditNumber' => null,
'maskedPan' => null,
'token' => null,
];
$params = array_merge($default, $params);
Expand All @@ -160,12 +161,11 @@ public function verify(
$result = $this->_request($url, $data);

if ($result['result']['responseCode'] != '00') {
throw new LarapayException($this->translateStatus($params['result']['responseCode']));
throw new LarapayException($this->translateStatus($result['result']['responseCode']));
}

return [
//TODO
// 'card' => null,
'card' => $params['maskedPan'],
'tracking_code' => $result['result']['systemTraceAuditNumber'],
'reference_id' => $result['result']['retrievalReferenceNumber'],
'result' => $result['result']['responseCode'],
Expand Down

0 comments on commit a6e34c9

Please sign in to comment.