X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   X-cart 4.6.5 and X-Payment 2.11 bug (https://forum.x-cart.com/showthread.php?t=70337)

akchance 10-26-2014 01:29 PM

X-cart 4.6.5 and X-Payment 2.11 bug
 
I have a fresh installation for X-cart 4.6.5 and X-Payment 2.11, both residing on the same VPS.

-X-payment test successfully connected to PAYPAL PRO gateway.
-X-cart is configured successfully to connect to X-Payment 2.11.

Here are the bugs I found. See PHP warning at the end. I am using PHP 5.4.34 with Apache/2.2.29

Any idea or tips on this issue? Thank you all in advance.

PROBLEM 1: When I use a discount coupon, per say $40 off. I get the following error:

Reason: Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)



PROBLEM 2: When I don't use a coupon. A regular checkout.

Reason: Error: Invalid Data (Item total is invalid.)

ERROR LOG FROM X-cart 1:
HTML Code:


Payment method: Secure Credit Card
    bill_output = Array
    (
        [sessid] => 23c5676db99d442f1c667b8cb6660d6d
=> 2
        [billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
    )
    original_bill_output = Array
    (
        [sessid] => 23c5676db99d442f1c667b8cb6660d6d
        [code] => 2
        [billmes] => Error: Transaction refused because of an invalid argument. See additional error messages for details. (The totals of the cart item amounts do not match order amounts.)
    )
    _GET = Array
    (
    )
    _POST = Array
    (
        [action] => return
        [refId] => 18462
        [txnId] => 00a47a73f9b20293a79602b541cafbd4
        [last_4_cc_num] => XXXX
        [card_type] => VISA
    )
Request URI: /payment/cc_xpc.php
Backtrace:
/home/user1/public_html/payment/payment_ccmid.php:460
/home/user1/public_html/payment/payment_ccend.php:48
/home/user1/public_html/payment/cc_xpc.php:234


ERROR LOG FROM X-cart 2
HTML Code:


----
    Payment method: Secure Credit Card
    bill_output = Array
    (
        [sessid] => 23c5676db99d442f1c667b8cb6660d6d
        [code] => 2
        [billmes] => Error: Invalid Data (Item total is invalid.)
    )
    original_bill_output = Array
    (
        [sessid] => 23c5676db99d442f1c667b8cb6660d6d
        [code] => 2
        [billmes] => Error: Invalid Data (Item total is invalid.)
    )
    _GET = Array
    (
    )
    _POST = Array
    (
        [action] => return
        [refId] => 18464
        [txnId] => eb9a13e0fd47ec7157eaad6115683d60
        [last_4_cc_num] => XXXX
        [card_type] => VISA
    )
Request URI: /payment/cc_xpc.php
Backtrace:
/home/user1/public_html/payment/payment_ccmid.php:460
/home/user1/public_html/payment/payment_ccend.php:48
/home/user1/public_html/payment/cc_xpc.php:234


PHP WARNINGS:
HTML Code:


[26-Oct-2014 16:51:49] Warning: Illegal string offset 'content' in /home/ayagroup/public_html/modules/Discount_Coupons/discount_coupons.php on line 140

[26-Oct-2014 16:52:51] Warning: Illegal string offset 'content' in /home/ayagroup/public_html/modules/Discount_Coupons/discount_coupons.php on line 140

[26-Oct-2014 16:54:06] Warning: usort() expects parameter 2 to be a valid callback, no array or string given in /home/ayagroup/public_html/include/lib/cssin/cssin.php on line 153

[26-Oct-2014 16:57:43] Warning: Illegal string offset 'content' in /home/ayagroup/public_html/modules/Discount_Coupons/discount_coupons.php on line 140

[26-Oct-2014 16:58:58] Warning: usort() expects parameter 2 to be a valid callback, no array or string given in /home/ayagroup/public_html/include/lib/cssin/cssin.php on line 153



NOTE: Need to update my signature. The last working x-cart store version was 4.54 with X-Payment 1.06.

ambal 10-27-2014 12:54 AM

Re: X-cart 4.6.5 and X-Payment 2.11 bug
 
> I have a fresh installation for X-cart 4.6.5 and X-Payment 2.11, both residing on the same VPS.

Please note that X-Payments must be installed separately in order to be PCI compliant. See full PCI DSS guide for X-Cart at http://help.x-cart.com/index.php?title=X-Cart_Payments:PCI_DSS_implementation_guide

With regards to the issues you posted - this needs to be investigated at your server. I suggest you to contact our techs using your HelpDesk account.

Freakmode 03-18-2015 09:01 AM

Re: X-cart 4.6.5 and X-Payment 2.11 bug
 
We get this same error message and are also using Paypal Pro

ambal 03-18-2015 11:53 PM

Re: X-cart 4.6.5 and X-Payment 2.11 bug
 
Hi guys,

We fixed this issue in our latest update of X-Cart 4 connectors. See http://blog.x-cart.com/xpayments-2-1-3-released.html

Basically you need to install updated X-Payments connector for your X-Cart version.

Freakmode 03-19-2015 03:17 AM

Re: X-cart 4.6.5 and X-Payment 2.11 bug
 
I have already installed that and the issue remains.:(

ambal 03-26-2015 02:32 AM

Re: X-cart 4.6.5 and X-Payment 2.11 bug
 
1 Attachment(s)
After research we've figured what may be a reason for this particular bug.

The issue is caused by rounding at X-Cart side (e.g. when certain tax %% values are configured) and PayPal line items specifics. I.e. X-Cart passes a little bit wrong values to X-Payments, that are then passed to PayPal as line items they require and as result totals do not match at PayPal side and the payment fails.

A solution is not to pass line items to PayPal if totals do not match and we have a patch for X-Payments connector in X-Cart 4.6.5 (Attachment 4079) for that.


All times are GMT -8. The time now is 12:12 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.