I’ve set up a PHP IPN Paypal notification handler on my site to notify me of payments through PayPal. I have a Joomla install which uses an elaborate, uncommented and undocumented component for processing bookings.
I know I need to call a certain PHP script with a series of arguments once a valid IPN has been received. However, as it’s Joomla I have the script in the form:
/index.php?option=com_component&controller=contr
Though obviously this isn’t the actual PHP script – like I say, an elaborate framework in MVC.
What is the best method to then call this script? I was thinking of using
header("Location: index.php?opt....");
however given I’ve got processing before (with no output) and potentially processing after, I’m not sure if this is the best call.
Appreciate this question is rather obtuse, but any help appreciated!
You can try using CURL, if it’s installed/enabled on your server.