Search code examples
pythondjangopaypalamazon-web-servicesdjango-paypal

IPN stimulator returns error 'IPN Delivery Failed:500 INTERNAL SERVER ERROR'?


I am trying to integrate paypal to my website.

so i downloaded dcramer django paypal from github. unzipped and pasted the paypal folder in my project directory. i added INSTALLED_APPS = (... 'paypal.standard.ipn', ...) and RECEIVER_EMAIL = 'suhailvs@gmail.com' to settings.py.

and (r'^paypal/notify/', include('paypal.standard.ipn.urls')), to my urls.py

i hosted it in amazon aws.

i tried to stimulate ipns at paypal ipn simulator.

I entered the IPN handler URL as http://<mysite address>/paypal/notify/ and when i clicked the send ipn button i got error:

ipn error


Solution

  • Solved the Problem. Need '/' at the end of IPN Handler URL

    if you give IPN handler url

    http://<url>/paypal/notify 
    

    it will return 500: error.

    But if you give

    http://<url>/paypal/notify/ 
    

    it will works fine.