News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Error with paypal payment in your shop [solved]

Started by squalogu, January 20, 2022, 14:49:28 PM

Previous topic - Next topic

squalogu

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?

jenkinhill

#1
Have you searched? Try looking in the FAQS.

??  http://forum.virtuemart.net/index.php?topic=147799.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

squalogu

hi, yes but I don't found this topic.
thanks now I try

squalogu

hi, My error text is different..
anyway I don't foud where I can do this.. Please sse attachment

squalogu

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!

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

squalogu


jenkinhill

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.......
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

squalogu

#8
I don't have this option:https://prnt.sc/26gfcdu      in my: https://prnt.sc/26gfcdu

squalogu

to update virtuemart? I tried but then it is not compactable with the templates ..

GJC Web Design

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



GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

squalogu

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

Jörgen

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




Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

squalogu

hello, yes in fact I'm not very practical.

In the file:

/plugins/vmpayment/paypal/paypal/helpers/paypal.php

i did as attached.

right?