How to redirect ipn notify

I use the s2member shortcode to make the Paypal pay buttons, but i need to change the IPN notify url to a php file which is used as IPN redirect machine.

The reason i need a redirect is that i need Paypal to notify s2member for the regular purpose but i need Paypal to notify another software as well…

How would i change the default s2member ipn notify url?

Thanks.

Can you use “API / Notifications” instead?

No, it doesn’t work with that software…

OK then, you may need to set your IPN URL in your Paypal account, see at Dashboard -> s2M admin -> PayPal Options -> PayPal IPN Integration.

Thanks, but that won’t work either because i need my Paypal url set to
another address for another site… :frowning:

OK, can use .htaccess to redirect or split the IPN?

I have a plugin which redirect / split IPN but i need the s2member link
shortcode to send the Paypal IPN notifications to that plugin’s file (url).

OK, then you must use the PHP form, instead [shortcode] version. You can see IPN URLs there in fields and can change to what you need.

Thanks, but isn’t there a way to some how tweak the core code with an
“mu-plugin” or something like that? i really like to use the shortcodes…

Look for good hooks in s2M code to do it this way.

@bentalgad, I have been looking for something similar and found this:
https://www.s2member.com/forums/topic/help-with-paypal-central-ipn-php-and-ipn/.
It’s an older thread but it might work for you (and hopefully for me as well :grin:

Thanks @boudweijnL. i actually ended up with a very “dumb but it work’s” solution using a plugin which search and replace the notify url to my php file.

Thank you very much anyway!

@bentalgad, what plugin is that? Sharing what you use could be useful for others as well.

​Oh, sorry, this is the plugin:


:

I ended up with using sonic IPN. Quite flexible and easy to use.