The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Payment Error 10413 when using coupon code and paypal!

fileeefileee Member
in Bugs & Feature Requests edited May 2016
This is quite urgent - Currently we get consistent errors when using paypal and a coupon code. I believe this is an error on your side. The reason is not totally clear, but let me give you some hints(i update the coupon code already to show 9,01€ discount instead of 9,00€ - now it works because of the rounding issue(see below)):

1) Go to and click on preorder and add a Set
2) Now enter the coupon "BOXGEWINN". This should give you some discount.
3) On the checkout page, enter your details but try to pay with paypal.
4) Normally the user would be forwarded to paypal, however now he gets the following error:

This error comes from paypal, e.g. see here:

- If we remove the coupon, it works.
- Some users we're able to order, however it our tests, we were never successful :(
  • fileeefileee Member
    Interesting, with another coupon code it works:

    So i guess it is because of some rounding problems with the amount for this coupon. Because that is the only difference between those 2 coupons.

    A coupon with setting: "37.773-3.781512605" works, with setting: "37.773-7.56302521" not
  • fileeefileee Member
    Final update: Ok it is definitely because of some rounding issues or so. But that is not really good, i mean we WANT to give users an exact discount, not some x,01€ discount or so. Also it is quite frustrating to test every coupon code before releasing it because you never know if you amount works or you need to add/remove some arbitrary cents.
  • fc_adamfc_adam FoxyCart Team

    Thanks for your detailed notes. I think you're right with your assessment, this looks to be a rounding issue because of the precision you're looking for, and how PayPal requires the pricing information be sent.

    I know this is an issue that has come up in the past (as evidenced in part by the forum link you provided), and that we've introduced rounding line items to account for it for PayPal specifically. I'm not sure why that hasn't assisted in this case. I'll create a ticket to look into this as quickly as we're able.
  • fc_adamfc_adam FoxyCart Team

    Thanks for your patience while we looked into this issue. We've rolled out a fix for this, so moving forward you shouldn't see these rounding issues come up. Thanks for bringing it to our attention and I'm sorry for the inconvenience.
Sign In or Register to comment.