count NO_DECISION as approved

This commit is contained in:
David Remer 2020-07-21 09:09:13 +03:00
parent ea56fd914d
commit 985c4fe626

View file

@ -110,6 +110,13 @@ class OrderProcessor
return true;
}
return $this->threedSecure->proceedWithOrder($order) === ThreeDSecure::PROCCEED;
$isApproved = in_array(
$this->threedSecure->proceedWithOrder($order),
[
ThreeDSecure::NO_DECISION,
ThreeDSecure::PROCCEED,
]
);
return $isApproved;
}
}