Pay pal refused

  • Posts: 719
  • Thank you received: 3
12 years 9 months ago #41118

Hi,
I've a problem with Paypal payment.
I asked you if you could add a percentage for paypal payments, you told me it was not possible.
So I put in my paypal procedure, a percentage (1.5%) in the form of management fees.
So far so good.

The problem comes when the customer confirms the payment.
The payment is rejected for this error:
"Hello,
A PayPal notification was rejected, because the amount received (23.65EUR) is different from the amount of the order (23.3EUR) "

And in addition, the order is canceled.

What can I do?


my site with Hikashop
www.lacasettabio.it
Last edit: 12 years 9 months ago by lacasetta.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 9 months ago #41125

Hi,

You can change the line:
if($price_check != @$vars || $currency->currency_code != @$vars){

to:
if($price_check > @$vars || $currency->currency_code != @$vars){

in the file plugins/hikashoppayment/paypal.php

That way, it will validate the orders as long as the payment is at least the amount of the order.

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

  • Posts: 719
  • Thank you received: 3
12 years 9 months ago #41129

OK, done!
Thanks


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 74
  • Thank you received: 1
11 years 10 months ago #86454

is this fix still required, im getting a similar issue, but mine it seems is due to the exchange rate of paypal giving a slightly different price on foreign orders.

e.g.: order = £41.56, but the papal currency conversion gives £41.57

so, shall I do this to my plugin or has this been fixed and this is another issue?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #86498

It has been fixed, in your case it's another issue.

Have you enable the "Send details of the order" in the PayPal options.

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

  • Posts: 74
  • Thank you received: 1
11 years 10 months ago #86499

Thanks for replying.

Yes the "send details" button is selected. See attachment.

So I dont need to make this amend to the plugin then? >>

/* if($price_check != @$vars || $currency->currency_code != @$vars){ */
if($price_check > @$vars || $currency->currency_code != @$vars){

Here is the email I got >>>>

Hello,
A Paypal notification was refused because the amount received (141.46GBP) is different from the order amount (141.45GBP)

Check the documentation concerning this issue at www.hikashop.com/index.php?option=com_up...-paypal-error#amount
This notification was for the order XXXX on the website www.XXXXXXXX.co.uk/
You can access the order details directly by clicking on the link below after logging in your back end:




I should mention that the plugin works fine usually with orders made using the UK paypal. I am guessing that the difference in values is due to this order being made in the Netherlands, and maybe the conversion from thier currency to UK pounds is not quite exact.?

Thanks

Attachments:

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

  • Posts: 74
  • Thank you received: 1
11 years 10 months ago #86501

/* if($price_check != @$vars || $currency->currency_code != @$vars){ */
if($price_check > @$vars || $currency->currency_code != @$vars){

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

  • Posts: 74
  • Thank you received: 1
11 years 10 months ago #86502

sorry the WSYWIG is stripping out the 'mc_gross' bits in the above code

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
11 years 10 months ago #86578

The error comes from the fact that PayPal calculate differently the taxes/prices. If you turn off the "send order details" option of the PayPal plugin, that error should not happen anymore as PayPal will only get the total of the order and process the correct price.

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

  • Posts: 74
  • Thank you received: 1
11 years 10 months ago #86612

Thanks, I will give that a try.

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

  • Posts: 719
  • Thank you received: 3
11 years 1 week ago #132983

Hi i had the same error:
"Ciao,
Una Paypal notifica è stata rifiutata poiché l'importo ricevuto (105.95EUR) è differente dall'importo dell'ordine (105.94EUR)"

I'll try to do what Nicolas wrote.
my code no longer has the change I had done.


my site with Hikashop
www.lacasettabio.it
Last edit: 11 years 1 week ago by lacasetta.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 week ago #133023

Hi,
Can you download the last Hikashop version through our website, install it and test it again ? If you're still having the "Paypal refused" message, can you show me how did you configured your Paypal payment method through some screenshots ?

Thank you :).

Last edit: 11 years 1 week ago by Mohamed Thelji.

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

Time to create page: 0.093 seconds
Powered by Kunena Forum