PayPal Integrator V5 - Online Help
PayPal Integrator V5
Questions / Feedback?

VerifyIPN Method

Verifies the IPN received by the merchant.

Syntax

ipncontrol.VerifyIPN

Remarks

This method verifies the Instant Payment Notification (IPN) sent to the merchant. The postdata from the received IPN should be passed to the FillFormVars method, or parsed manually into the FormVars property. Then simply call VerifyIPN to check if the IPN was really sent by PayPal. The result of that check is stored in the Response property.

A code example is shown below:

control.FillFormVars(Request.Form())
control.VerifyIPN()
If (control.Response = "VERIFIED") Then
  ProcessOrder() ' Process the order
Else
  LogError() ' Log the error and ignore this fraudulent IPN.
End If
If the IPN is verified, you may use the data contained within the IPN to ship the package. Alternatively, you may use the TransactionDetails control to download more detailed information about the transaction before sending a package.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0