Skip to content

Commit

Permalink
tests - update AkbankPosCryptTest to hash without sub merchant id
Browse files Browse the repository at this point in the history
  • Loading branch information
mustapayev committed Nov 17, 2024
1 parent 63f4a38 commit d45a955
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Unit/Crypt/AkbankPosCryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ protected function setUp(): void
'2023090417500284633D137A249DBBEB',
'3230323330393034313735303032363031353172675f357637355f3273387373745f7233725f73323333383737335f323272383774767276327672323531355f',
PosInterface::LANG_TR,
'sub-2023090417500272654BD9A49CF07574'
);

$logger = $this->createMock(LoggerInterface::class);
Expand Down Expand Up @@ -142,7 +141,7 @@ public static function create3DHashDataProvider(): array
'expiredDate' => '1135',
'cvv' => '665',
],
'expected' => 'N0iWnWjG93R20newWV7hJgpPaKmt2W4TwMP9BdvKSwcFVtJF+3JRlP7cxAcQMFe1XKQJNd1rYO4jsX65zrKUDg==',
'expected' => 'ilR2mCExklKEti+2x61A8pcOfzJ5z5M6xMYmmU8ClaKaDuxKooFuH3v7XW/ba25xlTDqGN1H//i0zTiJl5YnfA==',
],
'3d_host' => [
'requestData' => [
Expand All @@ -165,7 +164,7 @@ public static function create3DHashDataProvider(): array
'randomNumber' => 'AEDDD8688E11A3DC588DAB2ED59B2F64D45E798761CEFF17F4DB47581072697890180C4195986250F89C2C67A04A3B96F0AC66AE99B49BB7BEE618FBD621C4CD',
'requestDateTime' => '2024-04-04T21:11:41.000',
],
'expected' => '8dWHFFeUZ17Q5uEPKtIxJBDCTBJ11aPQpYdpsIISSjSUPRbXrax35kLVpqK4Hv6YpXFfA7ltqrp/yv7WwenvxQ==',
'expected' => '36uUlZFNi+Fs928RPt9CUfKfq+2hTWKK6idWFXjwnO47Qz4pVk6bliSUY+4RGw8Fzcqz+MUWQQ2Grz2zk4l9og==',
],
];
}
Expand Down

0 comments on commit d45a955

Please sign in to comment.