-3

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?

Robert
  • 5,278
  • 43
  • 65
  • 115
JEPAAB
  • 166
  • 3
  • 14

1 Answers1

-1

I have found a possible work around to avoid using the ipnNotificationURL by using the lightbox feature. Take a look at the following link Introducing Adaptive Payments While using the lightbox feature, the returnURL seems to always be called.

The returnURL was constructed as follows:

    public const string PayPal_URL_Return = YourReturnURL + "/${payKey}";

The ${payKey} is automatically filled in by PayPal itself. Using such information in the returned URL one may call the PaymentDetails using the PayPal Adpative Payments, and use the transaction details accordingly.

For information regarding the PayPal Adaptive Payments visit AdaptivePaymentsSampleApp. The file adaptivepaymentshandler.ashx.cs contains nearly all the necessary details, together with the Web.config file.

JEPAAB
  • 166
  • 3
  • 14