codeigniter - ci-merchant purchase() not working -


im using ci-merchant library in pyrocms module locally on development wamp server. (all working fine)

when upload linux test server purchase() function being called not seem work.

when executes pools 5 minutes response "could not connect 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);     //this im having issue $response = $this->merchant->purchase($params);  $message = $response->message(); 

when echo $message

echo $message; //outputs: couldn't connect host" 

curl - server settings

below list of differences in curl settings on servers. perhaps issue. dont think these settings can changed without having compile curl im not sure.

development server (wamp server - status:working)

asynchdns : yes curlinfo  : 7.21.7  gss neg   : yes idn       : no sspi      : yes libssh    : libssh2/1.2.7  

test server (linuxserver - status:not working)

asynchdns : no curlinfo  : 7.24.0   gss neg   : no   idn       : yes sspi      : no libssh    : <<not listed>> 

after trial , error , advice friends found missing libssh module.

since have moved site shared hosting company more reliable vps hosting.

i installed appropriate libraries , working fine.

i recommend hosting sites moving away "shared" hosting companies. encountered delayed support , vps hosting wasnt more paying vps.

but need know how manage server before do.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -