I am trying to set up PayPal to process payments. Everything is working OK except the fact that payments are not being cancelled when my IPN doesn't send a validation message to PayPal. As far as I understand if the IPN didn't validate the payment the transaction supposed to be cancelled.
The code looks like that:
When I tested it, according to my log an exception was thrown before a verification message was sent to PayPal. It didn't change the fact that the money was transferred to the PayPal account and the transaction is completed. Did I misunderstand? Is there anything else I'm supposed to do in order to cancel the transaction?
c# asp.net-mvc paypal paypal-ipn