Skip to content

Commit

Permalink
PosNetResponseDataMapper - fix 3d_all data is not available in respon…
Browse files Browse the repository at this point in the history
…se data
  • Loading branch information
nuryagdym committed May 22, 2024
1 parent 64d8b12 commit fb51817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function map3DPaymentData(array $raw3DAuthResponseData, ?array $rawPaymen
$defaultResponse['proc_return_code'] = $procReturnCode;
$defaultResponse['error_code'] = $raw3DAuthResponseData['respCode'];
$defaultResponse['error_message'] = $raw3DAuthResponseData['respText'];
$defaultResponse['3d_all'] = $raw3DAuthResponseData;

return $defaultResponse;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public function testMap3DPaymentData(array $order, string $txType, array $threeD
}

unset($actualData['transaction_time'], $expectedData['transaction_time']);

$this->assertArrayHasKey('3d_all', $actualData);
$this->assertIsArray($actualData['3d_all']);
$this->assertNotEmpty($actualData['3d_all']);
unset($actualData['all'], $actualData['3d_all']);
\ksort($expectedData);
\ksort($actualData);
Expand Down

0 comments on commit fb51817

Please sign in to comment.