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

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

Post by Anonymous »

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?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post