Warum erhalte ich einen Syntaxfehler für PHP-Code für die Integration von Opayo PI?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Warum erhalte ich einen Syntaxfehler für PHP-Code für die Integration von Opayo PI?

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?

Top