An example of the error, generated by the API:
Fatal error: Uncaught exception 'Exception' with message 'Error opening https://pay.icepay.eu/basic/?type=IDEAL&checkout=yes&ic_redirect=no&ic_country=NL&ic_language=NL&ic_fp=09226e3a0d1d054003316c4b60e2f2aa5857493c' in /var/www/icepay.php:329
1) OPEN SSL
This error occurs within the PHP API when the "php_open_ssl" extension is not enabled, installed and compiled. If OpenSSL is not supported by your hosting provider the API is unable to contact the ICEPAY server with the secure HTTPS protocol.
Contact your hosting provider for more information about support for OpenSSL or visit this URL:
http://www.php.net/manual/en/openssl.installation.php
Another option is offered for testing purposes in the latest version of the PHP API. You are able to set the ICEPAY API URL with the function SetApiURL(). However, it is not recommended to use the HTTP protocol since this is not secured.
A code example:
| require_once ('icepay.php'); |
| $icepay_cc = new ICEPAY_CC( 10000, "abcDEFghiJKLmnoPQRstuVWxyz" ); |
| $icepay_cc->SetApiURL("http://pay.icepay.eu/basic/"); |
2. PHP Setting: allow url fopen
If the hosting provider does not have "allow url fopen" enabled the error occurs using an older version of the PHP 5 API. This setting might be disabled by your provider for security reasons.
You can either contact your hosting provider for more information about enabling this setting but it is recommended to upgrade to the latest version of the PHP API. The new version of the API utilizes the CURL method to retrieve data from the ICEPAY server.
Solution in short:
Update to the latest PHP API version and use the CURL method.
Documentation:
http://developer.icepay.eu/documentation/icepay