by Anonymous » 23 Dec 2024, 16:59
Das ist mein Code:
if (Secure3Dv2Notification::isRequest($_POST)) {
$secure3Dv2Notification = new Secure3Dv2Notification::fromData($_POST);
// If you need the sent session data, it can be found here:
$encThreeDSSessionData = $secure3Dv2Notification->getThreeDSSessionData();
$threeDSSessionData = base64_decode($encThreeDSSessionData);
$request = new CreateSecure3Dv2Challenge(
$endpoint, $auth, $notification, $transactionId
);
$response = $client->sendRequest($request);
$transaction = ResponseFactory::fromHttpResponse($response);
}
Ich erhalte diese Fehlermeldung:
Syntaxfehler, unerwarteter T-STRING, erwartet T_VARIABLE
Es ist diese Zeile:
$secure3Dv2Notification = new Secure3Dv2Notification::fromData($_POST);
Was ist daran falsch?
Das ist mein Code:
if (Secure3Dv2Notification::isRequest($_POST)) {
$secure3Dv2Notification = new Secure3Dv2Notification::fromData($_POST);
// If you need the sent session data, it can be found here:
$encThreeDSSessionData = $secure3Dv2Notification->getThreeDSSessionData();
$threeDSSessionData = base64_decode($encThreeDSSessionData);
$request = new CreateSecure3Dv2Challenge(
$endpoint, $auth, $notification, $transactionId
);
$response = $client->sendRequest($request);
$transaction = ResponseFactory::fromHttpResponse($response);
}
Ich erhalte diese Fehlermeldung:
Syntaxfehler, unerwarteter T-STRING, erwartet T_VARIABLE
Es ist diese Zeile:
$secure3Dv2Notification = new Secure3Dv2Notification::fromData($_POST);
Was ist daran falsch?