I am trying to integrate PayPal Adaptive Payments into my localhost project. Until now I have managed to perform the paying process. However I need to receive a success response once the payment has been completed in order to update my database.
I have come across the returnURL
property, however this is not secure for my implementation since the user can just terminate the session before redirecting the returnURL
and thus the database would not get updated.
I have also come across the ipnNotificationUrl
however I did not manage to make it work. If this is the right way to achieve this goal what needs to be configured in the coding itself, the Web.config, the PayPal sandbox account, or any other configuration.
What is the best practice to achieve this goal?