Jump to content

Cart Rules (Coupons / Vouchers) Don't Work With My Paypal Module


barrystein

Recommended Posts

When a customer tries to use a coupon code or a cart rule or voucher, they get an error when trying to check out via paypal

The error says:

Unfortunately, an error occured while communicating with PayPal.

Short Error Message: Transaction refused because of an invalid argument. See additional error messages for details.

Detailed Error Message: The totals of the cart item amounts do not match order amounts.

Error Code: 10413

Please contact our Customer service and mention this error code to get this issue resolved.

 

 

I am using the module PayPal USA, Canada Developed by :PrestaShop| Version :1.3.9

I am running Prestashop 1.5.4.1

using PHP version: 5.2.17

MySQL version: 5.5.42-37.1-log

Edited by barrystein (see edit history)
Link to comment
Share on other sites

See if this will help in the standard.tpl file located in modules/paypalusa/views/templates/hook edit the file and at lines 41 & 48 change the change the true to false as below.

 

{assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS)}

Link to comment
Share on other sites

@barrystein, fix provided by @tdr170 should fix the issue if it is caused by tax related calculation.

but if the issue is caused by rounding of floating digits, it might be not work, check if the amount difference is very tiny (a few cents), if that is the case, then it might be complicated calculation.

just in case, if you are still not able to resolve the issue, you may consider to try Agile Paypal Express Checkout module - it has additional features. 

Link to comment
Share on other sites

See if this will help in the standard.tpl file located in modules/paypalusa/views/templates/hook edit the file and at lines 41 & 48 change the change the true to false as below.

 

{assign var="paypal_usa_total_discounts" value=$cart->getOrderTotal(false, Cart::ONLY_DISCOUNTS)}

 

No that didn't fix it....

Link to comment
Share on other sites

Thank you.... your module fixed the problem perfectly.....  do you recommend using the paypal log in option?

Since this did not work you should use the module I posted here.
https://www.prestashop.com/forums/topic/419632-paypal-no-order-in-bo-temp-fix-16/

It is the Euro version but works perfectly, I modified the PayPal payment logo to the US version.

Link to comment
Share on other sites

for some reason There is no place to enter voucher codes in checkout.

This just happened, I don't know why the place to enter vouchers disappeared.
It was there a few days ago.
 
Is it something I did above like displayFooterProduct and unhook PayPal from this position.
Link to comment
Share on other sites

Unhooking PayPal from cart footer should not effect the voucher as they are completely different.

Double check vouchers and make sure they are valid no expiration date for example.

 

To test you could reset the PayPal module, once your sure this is not the issue you could always unhook from product footer again.

(i do not think this is the issue)

 

Can you post a link to your site.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...