Forums / Built-in Shipping and Payment Modules / Nochex. Can't identify the product purchased

Nochex. Can't identify the product purchased

Locked

Views: 700

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
29 Sep 2008, 4:44 PM
#1
thermal avatar

thermal

New Zenner

Join Date:
Jul 2007
Location:
Bristol, UK
Posts:
5
Plugin Contributions:
0

Nochex. Can't identify the product purchased

Hello.

We noticed this problem with 1.3.7 and then upgraded to 1.3.8a to see if it has made any difference. No change.

The problem is that we cannot identify which product has been purchased, there are no products listed if we look at an order.

I set up the Nochex log and get this (xxx used for anonimity):


Mon Sep 2008 16:56 -- APC Session Query: SELECT *
FROM zen_nochex_sessions
WHERE session_id = '00e6179f8171df4cde7d5851ad054ae4'

$session_stuff = Array
(
[0] => zenid
[1] => 00e6179f8171df4cde7d5851ad054ae4
)

Mon Sep 2008 16:56 -- APC INFO - POST VARS
transaction_id=911661
&transaction_date=29%2F09%2F2008+16%3A56%3A12
&order_id=
&amount=6.9900
&from_email=xxx%40xxx.co.uk
&to_email=xxx%40xxx.co.uk
&security_key=be80806154ae49dabc2a2d7c64eec9e3
&status=live
&custom=zenid%3D00e6179f8171df4cde7d5851ad054ae4

Mon Sep 2008 16:56 -- APC INFO - RESPONSE
HTTP/1.1 200 OK
Connection: close
Date: Mon, 29 Sep 2008 15:56:26 GMT
Server: Microsoft-IIS/6.0
Content-Type: text/html
Expires: -1
Pragma: nocache
Cache-control: no-store


AUTHORISED

Any ideas where to look please?

1 Oct 2008, 3:42 PM
#2
thermal avatar

thermal

New Zenner

Join Date:
Jul 2007
Location:
Bristol, UK
Posts:
5
Plugin Contributions:
0

Re: Nochex. Can't identify the product purchased

Hello again.

I've been looking at the code thinking it might be something to do with having no order number returned from Nochex.

Looking at the Nochex record of the transaction there appears to be no order number sent with the order, so I went looking to find where it's generated.

In nochex_apc.php at line 197 (function process_button()), it looks to create a hidden field 'order_id' but I can't identify where it gets the value from. That is: Where does $nochex_order_id originate from?

    $payment_fields[] = zen_draw_hidden_field('order_id', $nochex_order_id);

Can anybody shed any light on this please?