Ich benutze das PayPal PHP SDK um Zahlungen abzuwickeln. Ich habe alles Ordnungsgemäß mit Composer installiert. Aber Leider:
Immer wenn ich eine Zahlung erstelle. Offenbar benutzt das SDK Konstanten die normalerweise in PHP 7.4 mit installiertem PHP-Curl verfügbar sein sollten. Das Merkwürde ist, es betrifft nur Https anfragen die von meinem Server an PayPal gestellt werden.
Ich habe schon gegoogelt, ein paar andere leute hatten das Problem auch, aber offenbar konnte es niemand beheben.
Ich bin echt verzefelt.
Ist einer von euch zufällig Experte?
Hier nochmal die genaue Fehlermeldung:
Code
Warning: Use of undefined constant CURLOPT_SSLVERSION - assumed 'CURLOPT_SSLVERSION' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_USERAGENT - assumed 'CURLOPT_USERAGENT' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_SSL_VERIFYHOST - assumed 'CURLOPT_SSL_VERIFYHOST' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Warning: Use of undefined constant CURLOPT_SSL_CIPHER_LIST - assumed 'CURLOPT_SSL_CIPHER_LIST' (this will throw an Error in a future version of PHP) in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 56
Fatal error: Uncaught Error: Call to undefined function PayPal\Core\curl_version() in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php:65 Stack trace: #0 /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php(56): PayPal\Core\PayPalHttpConfig->__construct() #1 /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php(104): PayPal\Transport\PayPalRestCall->execute() #2 /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php(571): PayPal\Common\PayPalResourceModel::executeCall() #3 /var/www/socloth/classes/paypal.php(50): PayPal\Api\Payment->create() #4 /var/www/socloth/models/order.php(42): Paypal::createOrder() #5 /var/www/socloth/controller/order.php(84): Order->getCheckoutURL() #6 /var/www/socloth/classes/controller.php(67): include('/var/www/soclot...') #7 /var/www/socloth/classes/controller.php(87): Controller->process() #8 /var/www/socloth/index.php(33): Controller->d in /var/www/socloth/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php on line 65
Alles anzeigen