Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-cart 4.6.5 and X-Payment 2.11 bug

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 10-26-2014, 01:29 PM
 
akchance akchance is offline
 

Newbie
  
Join Date: Apr 2007
Location: California, USA
Posts: 7
 

Default 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.
Reply With Quote
  #2  
Old 10-27-2014, 12:54 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,126
 

Default 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.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager

Last edited by ambal : 10-27-2014 at 11:12 PM.
Reply With Quote
  #3  
Old 03-18-2015, 09:01 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: X-cart 4.6.5 and X-Payment 2.11 bug

We get this same error message and are also using Paypal Pro
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #4  
Old 03-18-2015, 11:53 PM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,126
 

Default 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.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #5  
Old 03-19-2015, 03:17 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: X-cart 4.6.5 and X-Payment 2.11 bug

I have already installed that and the issue remains.
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #6  
Old 03-26-2015, 02:32 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,126
 

Default Re: X-cart 4.6.5 and X-Payment 2.11 bug

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 (xpc_amount_mismatch_wa.diff) for that.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager

Last edited by ambal : 03-26-2015 at 02:40 AM.
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:42 PM.

   

 
X-Cart forums © 2001-2020