omnipay-sagepay icon indicating copy to clipboard operation
omnipay-sagepay copied to clipboard

Wrong `threeDSessionData` in sagepay direct

Open airnayden opened this issue 3 years ago • 0 comments
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.

airnayden avatar Mar 08 '22 13:03 airnayden