Skip to content

Commit 0513b2f

Browse files
committed
MAGETWO-98454: Investigation: Transaction MD5 hash field is removed by Authorize.net
1 parent 6e75ac5 commit 0513b2f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/code/Magento/Authorizenet/Model/Directpost/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private function getSignatureKey()
267267
* @param string $signatureKey
268268
* @return void
269269
*/
270-
private function setSignatureKey(string $signatureKey)
270+
private function setSignatureKey($signatureKey)
271271
{
272272
$this->signatureKey = $signatureKey;
273273
}

app/code/Magento/Authorizenet/Model/Directpost/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function isApproved()
6868
* @return string
6969
* @see https://support.authorize.net/s/article/MD5-Hash-End-of-Life-Signature-Key-Replacement
7070
*/
71-
private function generateSha2Hash(string $signatureKey)
71+
private function generateSha2Hash($signatureKey)
7272
{
7373
$hashFields = [
7474
'x_trans_id',

app/code/Magento/Authorizenet/Test/Unit/Model/Directpost/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function setUp()
3838
* @return void
3939
* @dataProvider signRequestDataProvider
4040
*/
41-
public function testSignRequestData(string $signatureKey, string $expectedHash)
41+
public function testSignRequestData($signatureKey, $expectedHash)
4242
{
4343
/** @var \Magento\Authorizenet\Model\Directpost|\PHPUnit_Framework_MockObject_MockObject $paymentMethod */
4444
$paymentMethod = $this->getMock(\Magento\Authorizenet\Model\Directpost::class, [], [], '', false);

app/code/Magento/Authorizenet/Test/Unit/Model/Directpost/ResponseTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ protected function generateHash($merchantMd5, $merchantApiLogin, $amount, $trans
4848
* @dataProvider isValidHashDataProvider
4949
*/
5050
public function testIsValidHash(
51-
string $storedHash,
52-
string $hashKey,
53-
string $merchantApiLogin,
51+
$storedHash,
52+
$hashKey,
53+
$merchantApiLogin,
5454
$amount,
55-
string $transactionId,
56-
string $hash,
57-
bool $expectedValue
55+
$transactionId,
56+
$hash,
57+
$expectedValue
5858
) {
5959
$this->responseModelMock->setXAmount($amount);
6060
$this->responseModelMock->setXTransId($transactionId);

0 commit comments

Comments
 (0)