Paypal.php edit

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29342

Hi all
Having some fun with hikashop for the first time !

I was having problems with the paypal (IPN) notification being refused - and finally got it working by editing the paypal.php file following some advice on this forum
I removed (quite a lot) of code following this bit of advice from nicholas

www.hikashop.com/en/support/forum/4-how-...on-failed.html#12247

I am now worried that I have done something which could affect the operation of the site

can you tell me what the bit of code did that i removed

Tx

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

  • Posts: 81566
  • Thank you received: 13075
  • MODERATOR
12 years 5 months ago #29348

Hi,

That's the code which checks that the payment notifications come from a PayPal server by sending a request to PayPal servers.
That means that we can't guarantee that the payment notifications will come from PayPal and it could be a forgery.
There is still a check on the IP address from the sender of the notification, but it's possible (not easy) to falsify it and that why we had also that request to PayPal servers.

If you want to get the code from that file, just download again the installation package from our website and extract it. The file will be in the folder back/extensions/plg_hikashoppayment_paypal/ of the package.

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

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29372

Thanks Nicholas for your quick response ! that has set my mind at ease somewhat,
although I would still like to get to the bottom of why I had the problem in the first place

are there any other settings i could look into ?

I have checked so far

there is no .htaccess file to cause problems
my host allows outgoing connections
I have given paypal the url (mentioned on these forums)
hikashop notification setting is on

Tx again

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

  • Posts: 81566
  • Thank you received: 13075
  • MODERATOR
12 years 5 months ago #29379

Yes, you should check with your hosting company that SSL is activated for your server as it could also cause HikaShop to not be able to connect to PayPal.

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

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29399

you mean openssl ? or a certificate

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

  • Posts: 81566
  • Thank you received: 13075
  • MODERATOR
12 years 5 months ago #29409

Yes, openssl.

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

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29412

yep that is open and fopen

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

  • Posts: 81566
  • Thank you received: 13075
  • MODERATOR
12 years 5 months ago #29414

Then I'm out of ideas on that problem.
As explained in the documentation page www.hikashop.com/index.php?option=com_do...pal-error#connection we mentioned all the possible cases.

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

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29415

yep I tried to do as much research on my own before bothering you on this forum

I'm out of ideas as well (but that is not unusual for me)

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

  • Posts: 81566
  • Thank you received: 13075
  • MODERATOR
12 years 5 months ago #29422

Well, with the code modification you made in the plugin file, it will work. So that's one solution, even if it's not ideal...

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

  • Posts: 6
  • Thank you received: 0
12 years 5 months ago #29424

Yes thanks - I'm otherwise thrilled to bits with Hikashop

and I hope one day to be able to afford the full version - however I have to sell some stuff first !

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

Time to create page: 0.049 seconds
Powered by Kunena Forum