Jump to content

[solved] PayPal error in PS if the price is decimal, but no ,00 forint


VektorSoft

Recommended Posts

Hi everybody,
 
I know that now, why I recieved these errors when I used the PayPal payment in the preceding days.
 
I tried a lot of things how can I restrict the possibilities. In effect the problem is the price format.
 
For example:
If I set in the back-office (Localization/Configuration) that, the default currency will be EURO, than everything is ok.
 
But if I change it to Ft (Hungary), then I find the following problems:
If I set a price 87,00 everything will be good. I can use the PayPal button, and the redirection works perfectly.
But if I set the price 87,12 then the redirection doesn't work, but I recieve an error message like this:
 
Please try to contact the merchant:
<b>PayPal response:</b>
TIMESTAMP -> 2014-01-03T13:20:44Z
L_ERRORCODE0 -> 10401
L_ERRORCODE1 -> 10426
L_ERRORCODE2 -> 10431
L_ERRORCODE3 -> 10413
L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
L_SHORTMESSAGE1 -> Transaction refused because of an invalid argument. See additional error messages for details.
L_SHORTMESSAGE2 -> Transaction refused because of an invalid argument. See additional error messages for details.
L_SHORTMESSAGE3 -> Transaction refused because of an invalid argument. See additional error messages for details.
L_LONGMESSAGE0 -> Order total is invalid.
L_LONGMESSAGE1 -> Item total is invalid.
L_LONGMESSAGE2 -> Item amount is invalid.
L_LONGMESSAGE3 -> The totals of the cart item amounts do not match order amounts.
L_SEVERITYCODE0 -> Error
L_SEVERITYCODE1 -> Error
L_SEVERITYCODE2 -> Error
L_SEVERITYCODE3 -> Error

 

How can I solve this problem?

 

Many thx, Gyula

Link to comment
Share on other sites


Dear EL Patron,

 

I thank you for your fast answer very much.

You are right in that, the Forint does not use 2 digit decimal, I adjusted this correction.

 

But my main problem is that, if the shop default currency is Forint. In this case will occur the error what I mentioned.

 

I attached an screenshot.

 

Regard, Gyula


 

 

PS_PayPay.jpg
Link to comment
Share on other sites

I changed to "dollars", but the situation doesn't change.

 

If the shop's default currency is Forint and in any currency have being decimal number (but no ,00) then PayPal redirection does not work properly.

 

If you think this is a system error and you will find it useful, I grant my password to you (in private message), because my shop isn't live yet.

Link to comment
Share on other sites

 

I changed to "dollars", but the situation doesn't change.
 
If the shop's default currency is Forint and in any currency have being decimal number (but no ,00) then PayPal redirection does not work properly.
 
If you think this is a system error and you will find it useful, I grant my password to you (in private message), because my shop isn't live yet.

 

 

 

please personal message me back office link, email and pwd and I will take a look.

Link to comment
Share on other sites

you have euros as default currency and paypal payment set to shop default currency.

 

I changed your paypal payment currency to 'customer currency' and then could check out using forint.  Note: I could not go far in the checkout process because I have US address...and paypal complained about shipping restriction.

 

01.06.2014-10.33.png
http://screencast.com/t/snhF4Ffu6sG

 

Can you please retest checking out using forint.

  • Like 1
Link to comment
Share on other sites

Dear El Patron,

 

I thank you for your job very much.

It works, it was the problem.

 

If you will come to Hungary, tell me please , and you will be my guest, because I can be cooking well :-)

"Szegedi halászlé"

http://www.kiddytoy.eu/szegedi-halaszle-bogracs-b.jpg

 

Hi/Szia

 

The best part of PrestaShop is all the cool people from all over the world that I would love to meet.  My friend visited your country and had nothing but good  things to say about it.  And I did live in Canada for several years and ate at many  Hungarian restaurants there...I loved it!

 

Happy prestashopping and remember to return and help others.

Link to comment
Share on other sites

  • 10 months later...

Hi!

 
I use only huf currency, i have a same problem, but dont change the default currency euro
 
Update:

/express_checkout/process.php

if($currency->iso_code == "HUF")

{ $fields['PAYMENTREQUEST_0_SHIPPINGAMT'] = round($shipping_cost_wt); $fields['PAYMENTREQUEST_0_ITEMAMT'] = Tools::ps_round($total, $this->decimals); $fields['PAYMENTREQUEST_0_AMT'] = sprintf('%.2f', ($total + $fields['PAYMENTREQUEST_0_SHIPPINGAMT'])); }

else

{ $fields['PAYMENTREQUEST_0_SHIPPINGAMT'] = sprintf('%.2f', $shipping_cost_wt); $fields['PAYMENTREQUEST_0_ITEMAMT'] = Tools::ps_round($total, $this->decimals); $fields['PAYMENTREQUEST_0_AMT'] = sprintf('%.2f', ($total + $fields['PAYMENTREQUEST_0_SHIPPINGAMT'])); }
Edited by Vitamin (see edit history)
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...