Skip to content

Commit

Permalink
fixup! EstPos removed callbackUrl from 3dFormData
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed Mar 23, 2024
1 parent 8ed7280 commit b65f597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Crypt/EstPosCrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public function create3DHash(AbstractPosAccount $posAccount, array $requestData)
$requestData['islemtipi'],
$requestData['taksit'],
$requestData['rnd'],
$requestData['failUrl'], // callbackUrl
$posAccount->getStoreKey(),
];

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Crypt/EstPosCryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testCreate3DHash(): void
'failUrl' => 'https://domain.com/fail_url',
'rnd' => 'rand',
];
$expected = 'TN+2/D8lijFd+5zAUar6SH6EiRY=';
$expected = 'S7UxUAohxaxzl35WxHyDfuQx0sg=';

$actual = $this->crypt->create3DHash($this->account, $requestData);
$this->assertEquals($expected, $actual);
Expand All @@ -68,7 +68,7 @@ public function testCreate3DHashFor3DPay(): void
'failUrl' => 'https://domain.com/fail_url',
'rnd' => 'rand',
];
$expected = 'TN+2/D8lijFd+5zAUar6SH6EiRY=';
$expected = 'S7UxUAohxaxzl35WxHyDfuQx0sg=';

$actual = $this->crypt->create3DHash($this->account, $requestData);
$this->assertEquals($expected, $actual);
Expand Down

0 comments on commit b65f597

Please sign in to comment.