Im using the ci-merchant library in my PyroCMS module locally on my development WAMP server. (all work fine)
When I boot to my Linux test server, the purchase() function called does not work.
When it starts the pools for 5 minutes, I get the answer "I canβt connect to the host."
Php
$params = array( 'amount' => 20, 'currency' => 'USD', 'return_url' => 'http://someurl.com/return/' 'cancel_url' => 'http://someurl.com/cancel/' ); $settings = array( 'test_mode' => TRUE, 'username' => 'PAYPAL_TEST_USERNAME' 'password' => 'MY_PAPAL_TEST_PASS' 'signature' => 'MY_PAYPAL_TEST_SIG' ); $this->load->library('merchant'); $this->merchant->load('paypal_express'); $this->merchant->initialize($settings);
When I echo $ message
echo $message;
CURL - server settings
The following is a list of the differences in the CURL settings on the servers. Perhaps this is the problem. I do not think that these settings can be changed without compiling the curl, but I'm not sure.
Development server (WAMP server - status: operational)
AsynchDNS : Yes CurlInfo : 7.21.7 GSS Neg : Yes IDN : No SSPI : Yes libSSH : libssh2/1.2.7
Testing server (Linuxserver - status: does not work)
AsynchDNS : No CurlInfo : 7.24.0 GSS Neg : No IDN : Yes SSPI : No libSSH : <<not listed>>
source share