Note that there are some explanatory texts on larger screens.

plurals
  1. POCI-Merchant & SagePay - Can't seem to get it to respond with anything
    primarykey
    data
    text
    <p>I am integrating CI-Merchant into a Codeigniter project for processing payments with Paypal and SagePay.</p> <p>I have done the demo from <a href="http://ci-merchant.org/" rel="nofollow">http://ci-merchant.org/</a> for the paypal_express and that worked (or at least gave me a proper error when I used the example code - see below the response with the paypal code)</p> <pre><code>Merchant_response Object ( [_status:protected] =&gt; failed [_message:protected] =&gt; Security header is not valid [_reference:protected] =&gt; [_data:protected] =&gt; [_redirect_url:protected] =&gt; [_redirect_method:protected] =&gt; GET [_redirect_message:protected] =&gt; [_redirect_data:protected] =&gt; ) </code></pre> <p>I have updated the code for Sagepay and it is as follows</p> <pre><code>public function index() { $this-&gt;load-&gt;helper('language'); $this-&gt;load-&gt;library('merchant'); $this-&gt;merchant-&gt;load('sagepay_direct'); $settings = array ( 'vendor' =&gt; 'testvendor', 'test_mode' =&gt; FALSE, 'simulator_mode' =&gt; TRUE, ); $this-&gt;merchant-&gt;initialize($settings); $params = array( 'description'=&gt;'Test purchase', 'currency'=&gt;'GBP', 'transaction_id'=&gt;'12345', 'email'=&gt;'test@person.com', 'first_name'=&gt;'Test', 'last_name'=&gt;'Person', 'address1'=&gt;'1 Random Avenue', 'address2'=&gt;'Made Up Drive', 'city'=&gt;'Notarealcity', 'postcode'=&gt;'FA11 1KE', 'country'=&gt;'UK', 'region'=&gt;'', 'phone'=&gt;'0101010101', 'amount'=&gt;125.00, 'card_no'=&gt;'4444444444444444', 'name'=&gt; 'Mr Test', 'card_type' =&gt; 'VISA', 'exp_month'=&gt; 11, 'exp_year'=&gt; 15, 'csc'=&gt; 999 ); $response = $this-&gt;merchant-&gt;purchase($params); echo '&lt;pre&gt;'; print_r($response); exit; } </code></pre> <p>and the output from that code is</p> <pre><code>Merchant_response Object ( [_status:protected] =&gt; failed [_message:protected] =&gt; [_reference:protected] =&gt; [_data:protected] =&gt; [_redirect_url:protected] =&gt; [_redirect_method:protected] =&gt; GET [_redirect_message:protected] =&gt; [_redirect_data:protected] =&gt; ) </code></pre> <p>Which isn't giving me any information about what might be wrong.</p> <p>I am using a valid vendor name and have entered the IP address of the server into the SagePay simulator, the page the request is coming from is https and the URL the request is coming from is added into the sage pay simulator account section.</p> <p>It looks like it should be good to go but am now stuck - I would really appreciate any help on this.</p> <p>Thanks in advance</p> <p>Jason</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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