Skip to content

Commit

Permalink
fix issue #150 EstV3Pos rename islemtipi to TranType
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed Aug 31, 2023
1 parent 339ee2a commit cdc1e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/DataMapper/EstV3PosRequestDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public function create3DFormData(AbstractPosAccount $account, $order, string $tx
{
$data = $this->create3DFormDataCommon($account, $order, $txType, $gatewayURL, $card);

$data['inputs']['TranType'] = $this->mapTxType($txType);
unset($data['inputs']['islemtipi']);

$data['inputs']['hashAlgorithm'] = 'ver3';
$data['inputs']['hash'] = $this->crypt->create3DHash($account, $data['inputs'], $txType);

Expand Down
4 changes: 2 additions & 2 deletions tests/DataMapper/EstV3PosRequestDataMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testGet3DFormData()
'hashAlgorithm' => 'ver3',
'lang' => 'tr',
'currency' => 949,
'islemtipi' => 'Auth',
'TranType' => 'Auth',
'taksit' => '',
];

Expand Down Expand Up @@ -167,7 +167,7 @@ public function testGet3DHostFormData()
'hashAlgorithm' => 'ver3',
'lang' => 'tr',
'currency' => '949',
'islemtipi' => 'Auth',
'TranType' => 'Auth',
'taksit' => '',
];
$form = [
Expand Down

0 comments on commit cdc1e17

Please sign in to comment.