hi, the payment arrives, the order is accepted, everything ok. but I always get this email: Error with paypal payment in your VirtueMart 3 Sample store. The details are recorded in the paypal.5.log.php file
?
Good morning,
Error with paypal payment in your shop mysite... The details are recorded in the paypal.5.log.php file
VirtueMart team
? what is the problem?
Have you searched? Try looking in the FAQS.
?? http://forum.virtuemart.net/index.php?topic=147799.0
hi, yes but I don't found this topic.
thanks now I try
hi, My error text is different..
anyway I don't foud where I can do this.. Please sse attachment
Joomla! 3.10.3
VirtueMart 3.0.17
I can't update.
In the paypal payment metod there are this information.
Can I disable from file or code? how?
thanks!
That VM is over 5yrs old!
What did the logged error actually say? Log files are in yoursite/administrator/index.php?option=com_virtuemart&view=log
I send you in attachement
Error is ERROR checkPaypalIps Error with REMOTE IP ADDRESS - exactly as in http://forum.virtuemart.net/index.php?topic=147799.0
I have added an image to the FAQ. I think you may need to update your plugin.......
I don't have this option:https://prnt.sc/26gfcdu in my: https://prnt.sc/26gfcdu
to update virtuemart? I tried but then it is not compactable with the templates ..
then u will have to remove the check manually from the file...
look for the function protected function checkPaypalIps ($paypal_data) { - in plugins\vmpayment\paypal\paypal\helpers\paypal.php
immediately after the function opening add
return true;
protected function checkPaypalIps ($paypal_data) {
return true;
..... code continues
Hi, thaks
I have: protected function checkPaypalIps ($paypal_data) {
/*
$test_ipn = (array_key_exists('test_ipn', $paypal_data)) ? $paypal_data['test_ipn'] : 0;
if ($test_ipn == 1) {
return true;
}
*/
I need to edti like this:
protected function checkPaypalIps ($paypal_data) {
/*
return true;
}
*/
?
I have 2 time the file paypal.php :
here:
/plugins/vmpayment/paypal/paypal.php
and here:
/plugins/vmpayment/paypal/paypal/helpers/paypal.php
I need to edit both files?
thanks!
I attach the file
Hello
Your code snippets clearly show that You do not know how PHP works. Changing code without basic knowledge can lead to more trouble than you already have.
The bit of code you are showing us has been commented out and is not active. The rest if the function is active, but Your code change would also be inactivated.
You can do it like this:
protected function checkPaypalIps ($paypal_data) {
return true; // JH 2022-01-21 Return and allow any IP adress
/*
$test_ipn = (array_key_exists('test_ipn', $paypal_data)) ? $paypal_data['test_ipn'] : 0;
if ($test_ipn == 1) {
return true;
}
*/
I hope it helps
Jörgen @ Kreativ Fotografi
or see attached
hello, yes in fact I'm not very practical.
In the file:
/plugins/vmpayment/paypal/paypal/helpers/paypal.php
i did as attached.
right?
Yes seems to be alright.
Will give the same result.
Jörgen @ Kreativ Fotografi
thanks""" I think it is solved"" 8)