VektorSoft Posted January 3, 2014 Share Posted January 3, 2014 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 More sharing options...
El Patron Posted January 3, 2014 Share Posted January 3, 2014 Hi, I accept the forint on my shop without issue, here is a screen shot of the forint currency. Note: it's set as non-decimal. Hope this helps! http://screencast.com/t/JkqSoxOlj Link to comment Share on other sites More sharing options...
El Patron Posted January 3, 2014 Share Posted January 3, 2014 also a good way to determine currency formats is theFinancials Forex/Currency formats, notice the forint does not use 2 digit decimal. http://www.thefinancials.com/Default.aspx?SubSectionID=curformat Link to comment Share on other sites More sharing options...
VektorSoft Posted January 4, 2014 Author Share Posted January 4, 2014 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 Link to comment Share on other sites More sharing options...
El Patron Posted January 4, 2014 Share Posted January 4, 2014 can you post screen shot? back office-->localization-->currencies-->edit forint and past that screen shot... here is screen shot of working forint (using paypal) http://screencast.com/t/JkqSoxOlj Link to comment Share on other sites More sharing options...
VektorSoft Posted January 4, 2014 Author Share Posted January 4, 2014 of course, and thx I also use that setting that is yours Link to comment Share on other sites More sharing options...
El Patron Posted January 4, 2014 Share Posted January 4, 2014 change to 'as with dollars', not euros and see if that helps Link to comment Share on other sites More sharing options...
VektorSoft Posted January 4, 2014 Author Share Posted January 4, 2014 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 More sharing options...
El Patron Posted January 5, 2014 Share Posted January 5, 2014 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 More sharing options...
El Patron Posted January 6, 2014 Share Posted January 6, 2014 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. http://screencast.com/t/snhF4Ffu6sG Can you please retest checking out using forint. 1 Link to comment Share on other sites More sharing options...
VektorSoft Posted January 6, 2014 Author Share Posted January 6, 2014 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 Link to comment Share on other sites More sharing options...
El Patron Posted January 6, 2014 Share Posted January 6, 2014 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 More sharing options...
Vitamin Posted November 11, 2014 Share Posted November 11, 2014 (edited) 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 November 13, 2014 by Vitamin (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now