How to make sure that ipn response come from paypal
-
I am using paypal payment in my asp.net mvc 3.0 application. I have ipn action which is receiving paypal ipn responce after user payment, is there any way i can check that incpming request was send from paypal?
-
Answer:
PayPal has an IPN verification feature in place that you can use simply by sending the full IPN message you received back to PayPal and appending cmd=_notify-validate. If you receive a 'VERIFIED' response back, the IPN is good, and was sent from PayPal. If you receive an 'INVALID' response, the IPN was either not sent by PayPal, you didn't receive all the data, or you try to validate the IPN with all the data. When you receive an IPN message, you should leave the data exactly as it is and send it back to "https://www.paypal.com/cgi-bin/webscr?cmd=_notify-validate&". I use http://soft-net.net/SendHTTPTool.aspx to troubleshoot my IPNs if my scripts are giving me trouble. You can compare what you're posting to PayPal against what is in your https://www.paypal.com/us/cgi-bin/webscr?cmd=_display-ipns-history. There is a https://www.x.com/developers/community/blogs/ppmtsrobertg/securing-your-instant-payment-notification-ipn-script published by a PayPal tech on https://www.x.com/developers/community/blogs/ppmtsrobertg/securing-your-instant-payment-notification-ipn-script not too long ago, you should check it out for more information.
jason at Stack Overflow Visit the source
Related Q & A:
- How to help make one of my dreams come true?Best solution by wikihow.com
- How do you make sure you always have health care between jobs?Best solution by Yahoo! Answers
- How do you make the Yahoo messenger not come up when you log on to your computer?Best solution by Yahoo! Answers
- How to make sure my adsense is working properly?Best solution by webmasterworld.com
- How do I post a video response?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.