Hello there,
Good day. I would ask for help regarding to Drupal 7 "Stripe Module". I installed the Stripe Module from https://www.drupal.org/project/stripe.
I already downloaded the latest Stripe PHP API Library and put it into sites/all/libraries/stripe-php
The status of my library in /admin/reports/libraries/stripe-php is OK. Yet when I tried to go to /admin/config/stripe and click "Stripe Settings". This is the result of the /admin/config/stripe/settings link:
Error: Call to undefined function Stripe\HttpClient\curl_version() in Stripe\HttpClient\CurlClient->initUserAgentInfo() (line 84 of /var/www/html/sites/all/libraries/stripe-php/lib/HttpClient/CurlClient.php).
The website encountered an unexpected error. Please try again later.
There is only limited docs for this module. Sorry I dont know what to do.
Comments
PHP Curl extension
It seems like you need to install/enable the PHP Curl extension on your LAMP (?) environment: https://www.php.net/manual/en/curl.installation.php
Already tried. But not working.
Hello danrod!
I already tried to enable the Curl. What I did was:
- edit the php.ini file in /etc/php/7.1/cli
- I remove the ; in "extension=php_curl.dll" line.
- then restart apache2
- And clear the cache in my website.
After executing the steps, the page is still giving me the error.
PHP Curl extension
It seems like you need to install/enable the PHP Curl extension on your LAMP (?) environment: https://www.php.net/manual/en/curl.installation.php