0

I am in the process of moving from a plug-in IPN package (Valanx for Joomla) to a custom built one in PHP.

The problem is that there is no way to change the IPN address for existing subscribers! I'm not sure why PayPal has made this param fixed for eternity but it's causing us some headaches. So now we have to put some code in the existing IPN receiver to forward it to our new receiver - so that old subscribers get updated into the new system.

I can't find the file I have to modify. It is lost somewhere in the maze of Joomla files and plug-ins. The current plug-in uses a query string as it's receiver address http://mywebsite.com/index.php?option=com_acctexp&task=paypal_subscriptionnotification&Itemid=99999999'

My question is this: How do I find out which file to modify to forward the existing IPNs to our new system?

Or perhaps someone has another suggestion of how to handle this rather that forwarding the IPN (which seems rather clumsy to me).

2 Answers 2

2

Under normal Joomla! conventions (i.e. if the extension is writting following the MVC) the URL would break down as follows.

option=com_acctexp - in the front end maps to the directory /components/com_acctexp/

task=paypal_subscriptionnotification is the name of the method in one of the controller files. However, from memory Valanx's AEC product didn't follow this convention.

In a modern extension you would see task=controller.method syntax which would indicate the specific controller file and the method invoked in it.

You will probably find it in their processors (or is it called paymentgateways directory) within the main com_acctexp directory. I'd suggest looking for a paypal.php or paypal_subscriptions.php file in that directory.

Sorry I can't be more specific it's been a few years since with dumped replaced that product.

1
  • That is correct and I got confirmation from the developer too. The file is paypal_subscription.php
    – frankie
    Apr 25, 2013 at 8:52
0

You should be able to log into your PayPal account, and go into your IPN history within your account. If you click on one of the past IPN's that was sent out, it will give you the URL that you sent it to. This will tell you where the file is located at that you need to modify. Keep in mind the IPN history only goes back 28 days, so it would have to be for an IPN that was completed in the last 28 days.

4
  • Yes but the IPN address in the IPN message/history view is still a query http://www.mysite.com/index.php?option=com_acctexp&task=paypal_subscriptionnotification&Itemid= Any thoughts how I can find the actual PHP file that receives this?
    – frankie
    Apr 24, 2013 at 19:23
  • Off hand I wouldn't know where it is specifically placing the code without installing the same plugin package, and looking into it. If it is a plugin, you should have a plugin directory. You could try looking there. Otherwise if its a free plugin and you can point me to the download I can try looking into it. Apr 24, 2013 at 19:33
  • Unfortunately it's not free. Thanks for the offer though! I wonder if there's a way to see in cpanel or raw access logs where the IPN is getting processed?
    – frankie
    Apr 24, 2013 at 19:51
  • You could try doing a search against all of the files, for the PayPal URL as this should be in the code and your IPN script would be posting back against it. Apr 25, 2013 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.