Skip to content

Commit

Permalink
Merge pull request #23 from nuryagdym/master
Browse files Browse the repository at this point in the history
fix issue #22
  • Loading branch information
mewebstudio authored Apr 22, 2021
2 parents d2fd649 + 8df09f4 commit 4983708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Gateways/EstPos.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,11 @@ protected function map3DPaymentData($raw3DAuthResponseData, $rawPaymentResponseD
'year' => (string) $raw3DAuthResponseData['Ecom_Payment_Card_ExpDate_Year'],
'amount' => (string) $raw3DAuthResponseData['amount'],
'currency' => (string) $raw3DAuthResponseData['currency'],
'tx_status' => (string) $raw3DAuthResponseData['txstatus'],
'eci' => (string) $raw3DAuthResponseData['eci'],
'cavv' => (string) $raw3DAuthResponseData['cavv'],
'xid' => (string) $raw3DAuthResponseData['xid'],
'xid' => (string) $raw3DAuthResponseData['oid'],
'md_error_message' => (string) $raw3DAuthResponseData['mdErrorMsg'],
'name' => (string) $raw3DAuthResponseData['firmaadi'],
'email' => (string) $raw3DAuthResponseData['Email'],
'3d_all' => $raw3DAuthResponseData,
];

Expand Down
4 changes: 2 additions & 2 deletions src/Gateways/PosNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,15 @@ protected function check3DHash(array $data)
$this->account->getClientId(),
$this->account->getTerminalId(),
$this->order->amount,
$this->order->installment,
((int) $this->order->installment),
self::formatOrderId($this->order->id),
]);

$decryptedDataList = array_map('strval', [
$decryptedData[0],
$decryptedData[1],
$decryptedData[2],
$decryptedData[3],
((int) $decryptedData[3]),
$decryptedData[4],
]);

Expand Down

0 comments on commit 4983708

Please sign in to comment.