New Zenner
- Join Date:
- Sep 2008
- Posts:
- 5
- Plugin Contributions:
- 0
1.3.8a IPN testing with SANDBOX
Hi,
I have seen few posts around related to my problem, but didn’t find anything that will make it work.
I am testing zen cart 1.3.8a pointing to the SANDBOX, and I have a problem with the IPN module. Order status is not changing from Pending.
Looking at the IPN logs, I can see this:
Jan 24 2009 9:01 -- Breakpoint: 4 - Details: txn_type=unknown ordersID = 0 IPN_id=0
Relevant data from POST:
txn_type = unknown
parent_txn_id = None
txn_id = 0TN047134C4492205
Jan 24 2009 9:01 -- Breakpoint: 5 - Transaction type (txn_type) = unknown
Jan 24 2009 9:01 -- IPN WARNING :: Could not process for txn type: unknown
The transaction information is retrieved in the method ipn_lookup_transaction in paypal_functions.php. The code default these values as follow:
$ordersID = 0;
$paypalipnID = 0;
$transType = 'unknown';
After retrieving the transaction information, there is a switch case to set the variable transType based on the field pending_reason. In my case the value of pending_reason in the database is ‘paymentreview’, which is not checked in the switch case.
As result of that the order status is not being changed and I get the warning message.
Has anybody seen this before? Why the code is not handling ’payment review’? Is ’payment review’ a valid value? If not why do I get it from Paypal?
Thanks in advance