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

Error code 10413
 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 06-25-2013, 06:08 PM
 
abbieroad abbieroad is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 31
 

Default Error code 10413

When attempting to run a credit card order through x-cart 4.6.0 connected to x-payments and Paypal Payments Pro, we get an error:

Error code: 10413
Error message: 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.)

The item in the cart is $19.24 plus shipping of $4.95 gives a total of $24.19...everything looks correct.

Anybody have any ideas on this error?

Thanks!
__________________
Steve Wood

www.TheApronPlace.com
X-Cart version 4.6.0
Reply With Quote
  #2  
Old 06-26-2013, 04:40 AM
  random's Avatar 
random random is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 79
 

Default Re: Error code 10413

Could you please provide full cart details (screenshot is enough).
Is Gift wrapping available (but not selected) for this order?
__________________
Sincerely yours,
Vladimir Petrov
Senior X-Payments Developer
Reply With Quote
  #3  
Old 06-26-2013, 05:23 AM
 
abbieroad abbieroad is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 31
 

Default Re: Error code 10413

Thanks for your response Vladimir...attached is a screen shot of the checkout page and then the error. Let me know if you need anything else. Yes, we did have the gift wrap option available, but not selected. Also, we did turn off the gift wrap option and tried it again and it worked.
Attached Images
File Type: jpg screen1.jpg (216.6 KB, 10 views)
File Type: jpg screen2.jpg (222.1 KB, 8 views)
__________________
Steve Wood

www.TheApronPlace.com
X-Cart version 4.6.0
Reply With Quote
  #4  
Old 06-26-2013, 05:28 AM
  random's Avatar 
random random is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 79
 

Default Re: Error code 10413

Quote:
Originally Posted by abbieroad
Thanks for your response Vladimir...attached is a screen shot of the checkout page and then the error. Let me know if you need anything else. Yes, we did have the gift wrap option available, but not selected. Also, we did turn off the gift wrap option and tried it again and it worked.

This seems to be a known bug, which is going to be corrected in next X-Cart release.

Please apply the following change to fix it:

Open file
modules/XPayments_Connector/xpc_func.php

Find line
Code:
if (!empty($cart['giftwrap_cost'])) {

And change it to

Code:
if (!empty($cart['giftwrap_cost']) && !empty($cart['need_giftwrap']) && $cart['need_giftwrap'] == 'Y') {
__________________
Sincerely yours,
Vladimir Petrov
Senior X-Payments Developer
Reply With Quote

The following 2 users thank random for this useful post:
abbieroad (06-26-2013), ambal (06-26-2013)
  #5  
Old 06-26-2013, 06:03 AM
 
abbieroad abbieroad is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 31
 

Default Re: Error code 10413

Thanks, Vladimir, that fixed it! I appreciate the quick response!
__________________
Steve Wood

www.TheApronPlace.com
X-Cart version 4.6.0
Reply With Quote
  #6  
Old 07-14-2013, 06:26 PM
 
abbieroad abbieroad is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 31
 

Default Re: Error code 10413

Ok, we have the giftwrap issue fixed as described above and things seemed to be working after that. However, we are still getting seemingly random errors with some orders (same error as above). Most orders are going through fine, but some are still getting that error. Unfortunately, I can't see any pattern with the ones that are getting errors. Can you think of anything else that could be causing this?

Thanks!
__________________
Steve Wood

www.TheApronPlace.com
X-Cart version 4.6.0
Reply With Quote
  #7  
Old 07-15-2013, 08:31 PM
  random's Avatar 
random random is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 79
 

Default Re: Error code 10413

Could you clarify, you have same errors for X-Payments orders? Or for PayPal Express (atandalone)?
__________________
Sincerely yours,
Vladimir Petrov
Senior X-Payments Developer
Reply With Quote
  #8  
Old 07-16-2013, 05:09 AM
 
abbieroad abbieroad is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 31
 

Default Re: Error code 10413

It's the X-Payments with PayPal Payments Pro,,,same error as above, but only on some seemingly random orders. Most go through fine...
__________________
Steve Wood

www.TheApronPlace.com
X-Cart version 4.6.0
Reply With Quote
  #9  
Old 11-06-2013, 12:18 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: Error code 10413

This problem came up after I switched to PayPal Pro in October. I have one store using gift certificates. It is X-Cart 4.5.0 charging thru X-Payments 1.0.5.

If the gift certificate pays the total bill, no problem (does not go to PayPal).

If a customer pays part by gift certificate and part by credit cart, an error message comes up: Reason: Field format error: 10413-The totals of the cart item amounts do not match order amounts.

The error seems similar to the problem above involving gift wrap, but my version of xpc_func.php is not the same.

payment details.jpg error_message.jpg

I did not see anything about this in the bug tracker. Any ideas? Gift wrap is not used.
======================================
FOLLOW UP and resolution:
This bug is in the bug tracker at http://bugtracker.qtmsoft.com/view.php?id=42771. I did not use it originally because the fix is listed for gift wrapping, not gift certificates, and the error message or error number was not part of the post. Also, the previous posts are not good at identifying which X-Cart and X-Payment versions are involved. The problem does not seem to be related to the X-Payments version.

If anyone reading this is using X-Cart 4.5.0 or 4.5.1, and are using PayPal Pro and either gift wrapping or gift certificates, and encounter problems, this patch should help.
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #10  
Old 11-06-2013, 12:34 AM
  random's Avatar 
random random is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 79
 

Default Re: Error code 10413

Quote:
Originally Posted by bullfrog
This problem came up after I switched to PayPal Pro in October. I have one store using gift certificates. It is X-Cart 4.5.0 charging thru X-Payments 1.0.5.

If the gift certificate pays the total bill, no problem (does not go to PayPal).

If a customer pays part by gift certificate and part by credit cart, an error message comes up: Reason: Field format error: 10413-The totals of the cart item amounts do not match order amounts.

The error seems similar to the problem above involving gift wrap, but my version of
xpc_func.php is not the same.

Attachment 3601 Attachment 3602

I did not see anything about this in the bug tracker. Any ideas? Gift wrap is not used.

The issue you are having is caused by the gift certificate applied and it happened due to a bug in the X-Payment Connector from your X-Cart version.
Please contact our technical support team to resolve this issue.
__________________
Sincerely yours,
Vladimir Petrov
Senior X-Payments Developer
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

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 07:05 AM.

   

 
X-Cart forums © 2001-2018