omnipay-sagepay
omnipay-sagepay copied to clipboard
Wrong `threeDSessionData` in sagepay direct
trafficstars
In public function getRedirectData() from src/Message/Response.php:
if ($creq = $this->getDataItem('CReq')) {
return [
'creq' => $creq,
'threeDSSessionData' => $this->getVPSTxId(),
];
}
threeDSSessionData comes wrapped in { }, which causes an error if we perform a redirect after (malformed), which makes it impossible to begin/complete the 3D challenge (if required). Trimming the curly brackets seems to be making the request correct and the challenge can be completed.