paypal sandbox error

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #36747

Hi,
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #36835

Hi,

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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #36919

Hi Nicolas,
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #36928

Sorry it should be:

Our version is joomla 1.72 and Hika 1.55

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #37060

Could you give a link to a product which has that problem on your website so that we can have a look at the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37544

Hi Nicolas
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37619

Hi
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37721

Hi
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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #37809

I can see that the problem comes from the decimals of the prices sent to PayPal.

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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37830

Good Morning!
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37831

resent

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #37915

Hello,
Awaiting for your advise which part to be set it correctly?
Thanks in advance!
Jade

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #38039

Mmm. That's configured correctly.
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #38066

Hi Nicolas
Thanks for your reply.
Is it like the attached modification??
Regs.,
Jade

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #38068

Hi,
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #38167

Yes the modification is correct.


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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #38191

Hello,
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #38274

Mmm.

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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #38387

Good Morning!
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.

  • Posts: 92
  • Thank you received: 0
12 years 9 months ago #38389

resent (txt) file.

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum