[Skip to main content](#vessel-content)

#   Paypal.php edit

##

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29342](#29342) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  *[Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#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")* was created by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")*

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](http://www.hikashop.com/en/support/forum/4-how-to/12227-paypal-sandbox-connection-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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 11 months ago [\#29348](#29348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29348 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29372](#29372) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  Replied by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29372 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 11 months ago [\#29379](#29379) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29379 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29399](#29399) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  Replied by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29399 "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")*

you mean openssl ? or a certificate

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 11 months ago [\#29409](#29409) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29409 "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")*

Yes, openssl.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29412](#29412) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  Replied by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29412 "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")*

yep that is open and fopen

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 11 months ago [\#29414](#29414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29414 "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")*

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](http://www.hikashop.com/index.php?option=com_doc&ctrl=doc&component=HikaShop&page=payment-paypal-error#connection) we mentioned all the possible cases.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29415](#29415) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  Replied by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29415 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

14 years 11 months ago [\#29422](#29422) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29422 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")**
- [![lurkio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4469-lurkio "View lurkio's Profile") Topic Author
- [ Offline](/forum/user/4469-lurkio)

Less More

- Posts: 6
- Thank you received: 0
-
-

14 years 11 months ago [\#29424](#29424) by [lurkio](/forum/user/4469-lurkio "View lurkio's Profile")  Replied by *[lurkio](/forum/user/4469-lurkio "View lurkio's Profile")* on topic *[Re: Paypal.php edit](/forum/3-bug-report/29342-paypal-php-edit#29424 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yOTM0Mi1wYXlwYWwtcGhwLWVkaXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.112 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
