Note that there are some explanatory texts on larger screens.

plurals
  1. POci-merchant purchase() not working
    primarykey
    data
    text
    <p>Im using the <a href="http://ci-merchant.org/" rel="nofollow">ci-merchant</a> library in my PyroCMS module locally on my development WAMP server. (all working fine)</p> <p>When I upload to my Linux test server the <code>purchase()</code> function being called does not seem to work.</p> <p>When it executes it pools for 5 minutes then I get a response "<em>Could not connect to host</em>".</p> <p><strong>PHP</strong></p> <pre><code>$params = array( 'amount' =&gt; 20, 'currency' =&gt; 'USD', 'return_url' =&gt; 'http://someurl.com/return/' 'cancel_url' =&gt; 'http://someurl.com/cancel/' ); $settings = array( 'test_mode' =&gt; TRUE, 'username' =&gt; 'PAYPAL_TEST_USERNAME' 'password' =&gt; 'MY_PAPAL_TEST_PASS' 'signature' =&gt; 'MY_PAYPAL_TEST_SIG' ); $this-&gt;load-&gt;library('merchant'); $this-&gt;merchant-&gt;load('paypal_express'); $this-&gt;merchant-&gt;initialize($settings); //this is where Im having the issue $response = $this-&gt;merchant-&gt;purchase($params); $message = $response-&gt;message(); </code></pre> <p>When I echo $message</p> <pre><code>echo $message; //Outputs: couldn't connect to host" </code></pre> <p><em><strong>CURL - Server Settings</em></strong></p> <p>Below is a list of the differences in the CURL settings on the servers. Perhaps this is the issue. I dont think these settings can be changed without having to compile curl but im not sure. </p> <p><strong>Development Server</strong> (WAMP server - status:Working)</p> <pre><code>AsynchDNS : Yes CurlInfo : 7.21.7 GSS Neg : Yes IDN : No SSPI : Yes libSSH : libssh2/1.2.7 </code></pre> <p><strong>Test Server</strong> (Linuxserver - status:Not working)</p> <pre><code>AsynchDNS : No CurlInfo : 7.24.0 GSS Neg : No IDN : Yes SSPI : No libSSH : &lt;&lt;not listed&gt;&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload