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

#   How to: Override URL used for PayPal IPN?

##

- **[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")**
- [![mkj101us's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9513.jpeg)](/forum/user/9513-mkj101us "View mkj101us's Profile") Topic Author
- [ Offline](/forum/user/9513-mkj101us)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 2 months ago [\#66651](#66651) by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")  *[How to: Override URL used for PayPal IPN?](/forum/4-how-to/66651-how-to-override-url-used-for-paypal-ipn#66651 "Hello,  I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.  Currently Hika is sending:   myDomain.com/index.php?option=com&#95;hikash...pl=component&amp;lang=en  What I need it to be is:   myDomain.com/myIpnProcessor  The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.  Where would I go about overriding that Payment Notification URL in Hika?  Thanks, -Michael")* was created by *[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")*

Hello,

I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.

Currently Hika is sending: [ myDomain.com/index.php?option=com\_hikash...pl=component&amp;lang=en](http://myDomain.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=en)

What I need it to be is: [ myDomain.com/myIpnProcessor](http://myDomain.com/myIpnProcessor)

The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.

Where would I go about overriding that Payment Notification URL in Hika?

Thanks,
-Michael

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#66654](#66654) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: How to: Override URL used for PayPal IPN?](/forum/4-how-to/66651-how-to-override-url-used-for-paypal-ipn#66654 "Hello,  I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.  Currently Hika is sending:   myDomain.com/index.php?option=com&#95;hikash...pl=component&amp;lang=en  What I need it to be is:   myDomain.com/myIpnProcessor  The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.  Where would I go about overriding that Payment Notification URL in Hika?  Thanks, -Michael")*

Hi Michael,

In HikaShop &gt; Payment method, edit the paypal payment method, and fill the field "return url".
This will override the Payment Notification URL.

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

- **[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")**
- [![mkj101us's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9513.jpeg)](/forum/user/9513-mkj101us "View mkj101us's Profile") Topic Author
- [ Offline](/forum/user/9513-mkj101us)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 2 months ago -  14 years 2 months ago [\#66699](#66699) by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")  Replied by *[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")* on topic *[Re: How to: Override URL used for PayPal IPN?](/forum/4-how-to/66651-how-to-override-url-used-for-paypal-ipn#66699 "Hello,  I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.  Currently Hika is sending:   myDomain.com/index.php?option=com&#95;hikash...pl=component&amp;lang=en  What I need it to be is:   myDomain.com/myIpnProcessor  The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.  Where would I go about overriding that Payment Notification URL in Hika?  Thanks, -Michael")*

Hi Xavier,

I thought setting the 'Return URL' in the PayPal Standard plugin would do it but it does not.

Here is what I have done:
1. In Hika: See PayPal plugin settings on HikaPPSettings.png
2. In PayPal (sandbox) on Seller acount: Enabled Instant Payment Notifications and entered the same URL as I did in the Hika PayPal plugin - see ipnPPSettings.png
3. White-listed all of the IP addresses listed in the Hika PayPal plugin
4. Submit a purchase, I am in fact returned to the Return URL that I entered in the PayPal plug in, however I do not see any of the URL parameters passed - the location I am being returned to is my own servlet that reads parameters passed to it and writes them to a log - I can confirm nothing was passed by the absence of PayPal IPN data in the logs I write to
5. Also, I can tell PayPal is using a different URL for IPN notifications, see ipnHistory.png, the Notification URL is the Hika Store, rather than the URL I entered in the PayPal plugin and in the PayPal IPN settings

So, what I'm looking for is to override the Notification URL as see in ipnHistory.png with my URL. Is this a mod to one or more .php file? If so, what would that mod look like?

Thanks,
-Mike

- [ ![HikaPPSettings.png](/forum/attachment/5890) ](/forum/attachment/5890 "...PPSettings.png") [ ](/forum/attachment/5890?download=1 "...PPSettings.png")
- [ ![ipnPPSettings.png](/forum/attachment/5891) ](/forum/attachment/5891 "ipnPPSettings.png") [ ](/forum/attachment/5891?download=1 "ipnPPSettings.png")
- [ ![ipnHistory.png](/forum/attachment/5892) ](/forum/attachment/5892 "ipnHistory.png") [ ](/forum/attachment/5892?download=1 "ipnHistory.png")

Last edit: 14 years 2 months ago by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile").

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

- **[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")**
- [![mkj101us's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9513.jpeg)](/forum/user/9513-mkj101us "View mkj101us's Profile") Topic Author
- [ Offline](/forum/user/9513-mkj101us)

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 2 months ago [\#66743](#66743) by [mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")  Replied by *[mkj101us](/forum/user/9513-mkj101us "View mkj101us's Profile")* on topic *[Re: How to: Override URL used for PayPal IPN?](/forum/4-how-to/66651-how-to-override-url-used-for-paypal-ipn#66743 "Hello,  I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.  Currently Hika is sending:   myDomain.com/index.php?option=com&#95;hikash...pl=component&amp;lang=en  What I need it to be is:   myDomain.com/myIpnProcessor  The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.  Where would I go about overriding that Payment Notification URL in Hika?  Thanks, -Michael")*

No need to reply, I found where to make the mod, in the aptly named: paypal.php, change this line:

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=paypal&amp;tmpl=component&amp;lang='.$locale.$url_itemid;

to something like:

$notify_url = HIKASHOP_LIVE.'yourIpnProcessorUrl';

easy....

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

14 years 2 months ago [\#66746](#66746) by [FRMYR](/forum/user/8596-frmyr "View FRMYR's Profile")  Replied by *[FRMYR](/forum/user/8596-frmyr "View FRMYR's Profile")* on topic *[Re: How to: Override URL used for PayPal IPN?](/forum/4-how-to/66651-how-to-override-url-used-for-paypal-ipn#66746 "Hello,  I am using the PayPal payment plugin and I need to override the URL sent by Hika to PayPal for Instant Payment Notifications.  Currently Hika is sending:   myDomain.com/index.php?option=com&#95;hikash...pl=component&amp;lang=en  What I need it to be is:   myDomain.com/myIpnProcessor  The reason being is: I have a number of automated back office processes that need to run once a PayPal payment has been confirmed by PayPal.  Where would I go about overriding that Payment Notification URL in Hika?  Thanks, -Michael")*

I guess I don't understand why you are not just using Hika's front end -- URL -- setting. Isn't that where your code is grabbing from anyway?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2NjUxLWhvdy10by1vdmVycmlkZS11cmwtdXNlZC1mb3ItcGF5cGFsLWlwbj90bXBsPW1hcmtkb3du) 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.053 seconds

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