Bonjour,
Voila je rencontre un petit problème avec mon code.
Fatal error: Uncaught Error: Call to undefined function Stripe\HttpClient\curl_version() in /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php:67 Stack trace: #0 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php(62): Stripe\HttpClient\CurlClient->initUserAgentInfo() #1 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php(36): Stripe\HttpClient\CurlClient->__construct() #2 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/ApiRequestor.php(451): Stripe\HttpClient\CurlClient::instance() #3 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/ApiRequestor.php(320): Stripe\ApiRequestor->httpClient() #4 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/ApiRequestor.php(96): Stripe\ApiRequestor->_requestRaw('post', '/v1/charges', Array, Array) #5 /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/ApiOperations/Request.php(56): Stripe\ApiRequestor->re in /home/expedition-wars/www/php/credit/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php on line 67
A savoir que stripe fonctionnait la dernière fois que je l'ai essayé. Je ne comprend pas.
Voici les lignes de code en question:
public function initUserAgentInfo()
{
$curlVersion = curl_version();
$this->userAgentInfo = [
'httplib' => 'curl ' . $curlVersion['version'],
'ssllib' => $curlVersion['ssl_version'],
];
}
Merci