New Zenner
- Join Date:
- Mar 2008
- Posts:
- 27
- Plugin Contributions:
- 0
Post #1 by uneek
I have a client who is having intermittent issues where some orders are not received into ZC, but the PP notification of a payment is received.
ZC Version is 1.3.9g and PHP 5.2.14
I have reviewed a log of one of the issues and will insert it below:
First Log File
Nov 09 2010 8:32 -- IPN PROCESSING INITIATED.
*** Originating IP: 66.211.170.66 notify.paypal.com
Nov 09 2010 8:32 -- Breakpoint: 0 - Initializing debugging.
Nov 09 2010 8:32 -- Breakpoint: Flag Status:
isECtransaction = 0
isDPtransaction = 0
Nov 09 2010 8:32 -- IPN NOTICE :: No POST data to process -- Bad IPN data
Nov 09 2010 8:32 -- Breakpoint: 1 - Collected data from PayPal notification
Nov 09 2010 8:32 -- IPN INFO :: Transaction email details.
From IPN = INFO@.COM.AU | SALES@.COM.AU
From CONFIG = info@******.com.au
Nov 09 2010 8:32 -- Breakpoint: 2 - Validated transaction components
Nov 09 2010 8:32 -- Breakpoint: 3 - Communication method verified
Nov 09 2010 8:32 -- IPN NOTICE :: Could not find matched txn_id record in DB. Therefore is new to us.
Nov 09 2010 8:32 -- Breakpoint: 4 - Details: txn_type=unique ordersID = 0 IPN_id=0
Relevant data from POST:
txn_type = unique
parent_txn_id = None
txn_id = 89684349KY011424R
Nov 09 2010 8:32 -- IPN NOTICE :: IPN pausing: waiting for PDT to process. Sleeping 10 seconds ...
Nov 09 2010 8:32 -- Breakpoint: 5 - Transaction type (txn_type) = cart [parentLookup=unique]
Nov 09 2010 8:32 -- IPN NOTICE :: This is a detailed-cart transaction
Nov 09 2010 8:32 -- IPN NOTICE :: This is a detailed-cart transaction (i)
Nov 09 2010 8:32 -- IPN WARNING :: Currency/Amount Mismatch. Details:
PayPal email address = INFO@******.COM.AU
| mc_currency = AUD
| submitted_currency = AUD
| order_currency = AUD
| mc_gross = 364.92
| converted_amount = 364.91
| order_amount = 364.91494
Nov 09 2010 8:32 -- IPN NOTICE :: Failed because of currency mismatch.
Second Log File
Nov 09 2010 8:32 -- PDT PROCESSING INITIATED.
Preparing to verify transaction via PDT.
The TX token for verification is: Array
(
[tx] => 89684349KY011424R
[st] => Completed
[amt] => 364.92
[cc] => AUD
[cm] => zenid%3d45d75d5ce7c36845dbaf5a18f5809d54
[item_number] =>
[main_page] => checkout_process
[referer] => paypal
[merchant_return_link] => Return to ******
[form_charset] => UTF-8
)
Nov 09 2010 8:32 -- IPN INFO - POST VARS to be sent back (unsorted) for validation (using CURL):
To: www.paypal.com:80
Array
(
[cmd] => _notify-sync
[tx] => 89684349KY011424R
[at] => fqlAW**********YzO0S
)
Nov 09 2010 8:32 -- CURL OPTS: Array
(
[10002] => https://www.paypal.com/cgi-bin/webscr
[47] => 1
[10015] => cmd=_notify-synch&tx=89684349KY011424R&at=fqlAW**********YzO0S
[13] => 45
[78] => 30
[41] => 0
[42] => 0
[52] => 0
[19913] => 1
[64] => 0
[81] => 2
[75] => 1
[74] => 1
[84] => 2
[10018] => Zen Cart(tm) - IPN Postback
)
Nov 09 2010 8:32 -- CURL response: FAIL
Error: 4020
Nov 09 2010 8:32 -- IPN INFO (cl) - Confirmation/Validation response FAIL
Nov 09 2010 8:32 -- PDT Returned INVALID Data. Must wait for IPN to process instead.
Array
(
)
So the first log file states that there is an amount mismatch. Currency is AUD and is set to a value of 1.00000000 in the Admin. So I don't think there is an issue with the currency, but it appears the amount mismatch is to do with a rounding issue, i.e. 364.91494 does not round up to 364.92.
I have no idea where this rounding is done? Can anyone pls point me in the right direction.
Also, as it is a detailed line invoice another bug is when the item has an attribute attached to it, eg a certain flavour, then only the flavour details are shown on the invoice instead of the actual product name so it makes it hard to track down the actual item that has been purchased when the order does not exist in ZC.
Any help appreciated. Hope I have posted this in the right forum as there doesnt appear to be a forum for standard payments.
cheers