Bonjour,
J'ai suivi une vidéo montrant comment mettre en place un paiement avec paypal, j'ai repris le code mais dans mon VPS cela ne fonctionne pas, que dois-je changer ?
Warning: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP) in /var/www/html/paypal2/paypal.class.php on line 34
Warning: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' (this will throw an Error in a future version of PHP) in /var/www/html/paypal2/paypal.class.php on line 35
Warning: Use of undefined constant CURLOPT_POSTFIELDS - assumed 'CURLOPT_POSTFIELDS' (this will throw an Error in a future version of PHP) in /var/www/html/paypal2/paypal.class.php on line 36
Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/paypal2/paypal.class.php:39 Stack trace: #0 /var/www/html/paypal2/paiement.php(25): Paypal->request('SetExpressCheck...', Array) #1 {main} thrown in /var/www/html/paypal2/paypal.class.php on line 39
Partager