- Posts: 92
- Thank you received: 0
paypal sandbox error
Could you please advise what's wrong and help me to solve it while checking out redirect to paypal and then show the below message from paypal sandbox mode:
Error Detected
Error Message
The link you have used to enter the PayPal system contains an incorrectly formatted item amount.
Thanks in advance!
Jade
Please Log in or Create an account to join the conversation.
You must have changed the number of decimals of your prices no ?
In that case, you should turn off the option "send order details" in the options of the paypal plugin and you want have the problem.
Please Log in or Create an account to join the conversation.
Our version is joomla 1.72 and Hika 1.54
1. If the unit price is $XX.00 then can work without any error.
2. If the unit price is $XX.90 (or have any decimals) then error again.
* The "send order details" is turned off when I was used Hika till now.
Cheers!
Jade
Please Log in or Create an account to join the conversation.
Our version is joomla 1.72 and Hika 1.55
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I've update hika 1.56 and
made a demo sit for you to check it how.
Please visit:
www.shop.iconxept.com/j6
Thanks!
Jade
Please Log in or Create an account to join the conversation.
I have test the other demo site today. Joomla 1.73 Hika 1.55
Even the unit price is $XX.00 (without any decimals) then error again.
Please help me to check out is any setting will occur this error?
Thanks in advance!
Jade
Please Log in or Create an account to join the conversation.
Did you think the following setting will occur this problem?
1) Configuration > System > Main -- Cart retaining period (there are two LINE FOR SET)
Please advise what is the normal in this setting should be?
2) Since the paypal is error but the order is created already at the back end.
So, does it will affect if client try to create another order again?
3) Attach is the paypal setting for your reference.
Thanks in advance.
Jade
Please Log in or Create an account to join the conversation.
It must come from the way you configured your currency via the menu System->Currencies. Please check that you have 2 decimals configured for your USD currency and that should solve the problem.
Please Log in or Create an account to join the conversation.
Please see the attached and advise which part I need to be set?
Thanks in advance.
Jade
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Awaiting for your advise which part to be set it correctly?
Thanks in advance!
Jade
Please Log in or Create an account to join the conversation.
Then, please add the line:
$currency->currency_locale = 2;
after the lines:
$currency=$currencies[$order->order_currency_id];
in the file plugins/hikashoppayment/paypal.php
That should help avoid the problem.
Please Log in or Create an account to join the conversation.
Thanks for your reply.
Is it like the attached modification??
Regs.,
Jade
Please Log in or Create an account to join the conversation.
If replaced this paypal.php
It will display a "blank content page" when opening this plugin at the backend.
Please help to check for it.
Thanks in advance.
Regs.,
Jade
Please Log in or Create an account to join the conversation.
If you get a blank page when you edit the plugin, it's likely there there is a problem with your modification. Are you sure that you didn't change something else in that file ?
Because that modification doesn't seem to be faulty.
Please Log in or Create an account to join the conversation.
I have re-modify this file and the back end display normally now.
However, the paypal error is still the same as before.
Please help me to check it again.
Many thanks!
Jade
Please Log in or Create an account to join the conversation.
Then, instead of :
$vars["amount_".$i]=round($product->order_product_price,(int)$currency->currency_locale);
change it to:
$vars["amount_".$i]=round($product->order_product_price,2);
in that file.
Please Log in or Create an account to join the conversation.
Nicolas,
Sorry still have the problem.
Please check the file if any thing I made mistake?
Regs.,
Jade
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.