cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data to paypal with no digits after the decimal point

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Sending data to paypal with no digits after the decimal point

Thank you for always helping me a lot.

 

I am developing my store with Magento ver. 1.9.1.0.

I got an error "PayPal gateway has rejected request.", when I test paypal function.

I asked Paypal support and they answered this error is because of wrong digits after the decimal point for our currency.

Which file should I fix to correct digits after the decimal point?

 

 

1 REPLY 1

Re: Sending data to paypal with no digits after the decimal point

I found the solution by myself.

 

In the file, lib/Zend/Currency.php
change the following line

‘precision’ => 2,

to

‘precision’ => 0,

And in another file, app/code/core/Mage/Core/Model/Store.php
change the following line
return round($price, 2);
to
return round($price, 0);

 

By editing the files, I could send data to paypal with no digits after the decimal point.

Thank you for your attention.