Having a serious issue with Cart Throb:

When checking out I am getting this error

Your payment failed: Failed: The totals of the cart item amounts do not match order amounts. 10413 Try checking out again »

I am using Paypal Express

Cart Throb version 2.2.2 EE version 2.5.2

I checked my plugin and this line is already there:

if (!empty($_POST['PR']) || !empty($_POST['price']) || $this->order('pp_alt_total'))

What could be causing this error? Please help this is a live store.

Here is my checkout code:

{if "{exp:cartthrob:total_items_count}" > 0}

   <div id="checkout_totals">
      <td><span class="sale_price">Total</span></td>
      <td><span class="sale_price"><span class="cart_total">{exp:cartthrob:cart_total}</span></span></td>
      <td><span class="cart_subtotal">{exp:cartthrob:cart_subtotal}</span></td>
      <td><span class="cart_shipping">{exp:cartthrob:cart_shipping}</span></td>
      <td><span class="cart_tax">{exp:cartthrob:cart_tax}</span></td>
      <td>-<span class="cart_discount">{exp:cartthrob:cart_discount}</span></td>
   <div id="checkout_notes">
 *All fields are required</p>

  {!-- add secure_action="yes" parameter if you want to submit this form using HTTPS:// connection --}

   {!-- {if {exp:cartthrob:view_setting allow_gateway_selection="yes"}}
    <p><label for="gateway">Select a payment method</label>
    {exp:cartthrob:gateway_select id="gateway"}</p>
   Coupon: &lt;input type="text" name="coupon_code" /&gt; 
   <div id="checkout_form_gateway_fields">

      &lt;input type="submit" class="cart_submit_button" value="Complete Checkout" /&gt;

   <p>You have no items in your cart. <a href="{path=shop/index}">Continue shopping</a></p>
  • 1
    For the record, for code just indent 4 spaces (or click {} button in the editor), [code] doesn't work on Stack Exchange. Jan 3 '13 at 18:08
  • I'm not sure about CartThrob specifically, but this error is why we haven't implemented line-item details for Paypal in Store yet. Is there a way to disable CT from sending line-item details to Paypal? Jan 3 '13 at 18:11
  • Peter - I'd suggest posting this to the CartThrob support forums, where you're sure to get help. Jan 4 '13 at 14:06
  • Derek,I wish you were right. I have posted there with no feedback at all, tweeted them with no feedback at all. I have had another post in the CT forums for over a month with no response. Jan 4 '13 at 15:33
  • Peter, were you able to get this issue resolved? If yes, can you post your fix here as an answer?
    – Anna_MediaGirl
    Jan 12 '13 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.