Search code examples
paypal

Can I use localhost URL as notify_url in paypal IPN?


Can I give my localhost url in paypal IPN to send the message back to notify and process it?

OR...

Do I need live server URL to process (I guess this is right) because paypal knows live url when sending the message, but it never knows localhost url to send message.

Can anyone please tell me, do I need live server url or can I use localhost because I am not sure.

If I need live URL, how can I debug and develop my functionality (to send mail etc) in visual studio?

Does anyone have a small example or some useful links??


Solution

  • No, notify_url must be directly accessible via the internet, because PayPal will POST the data to it.
    In addition, it must run on port 80 or 443. Other ports are not allowed.