Skip to content

Commit

Permalink
WOOD-626 Update 3DS1 processing
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejslawik committed May 25, 2021
1 parent 6ff219f commit d9dbbad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Service/AdyenThreeDS1Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function __construct(

public function authorisePayment($payment, string $md, $paRes) : void
{
if ($payment->getAdditionalInformation('md') === $md) {
$actionData = $payment->getAdditionalInformation('action');
if (isset($actionData['data']['MD']) && $actionData['data']['MD'] === $md) {
$result = $this->authorise3d($payment, $paRes);
$responseCode = $result['resultCode'];
if ($responseCode == 'Authorised') {
Expand Down Expand Up @@ -89,7 +90,7 @@ private function authorise3d(\Magento\Payment\Model\InfoInterface $payment, stri
return $service->paymentsDetails([
'paymentData' => $payment->getAdditionalInformation('paymentData'),
'details' => [
'MD' => $payment->getAdditionalInformation('md'),
'MD' => $payment->getAdditionalInformation('action')['data']['MD'],
'PaRes' => $paRes
]
]);
Expand Down

0 comments on commit d9dbbad

Please # to comment.