Jump to content


Photo

How do I troubleshoot IPN?


  • This topic is locked This topic is locked
1 reply to this topic

#1 mark1504

mark1504

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 August 2003 - 03:45 AM

The billing via Paypal works fine. I'm just trying to get IPN running for the first time.

However...although I've switched on IPN I'm getting no feedback i.e. my subsequent code on the ipn page is not running.

How can I tell if Paypal is really carrying out the IPN? The payment process seems to function just the same even if I take the ipn page away! Confused!

I'm using vb.net/code behind. ('Addhit' is my function for logging activity to db.)
Code follows...

Thanks and Regards
Mark

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Payment_status, objHttp,str,OrderID
Dim strSQL2 As String

'read post from Paypal system and add 'cmd'
str = Request.Form
OrderID = Request.Form("item_number")
Dim Txn_id As String = Request.Form("txn_id")
Payment_status = Request.Form("payment_status")
str = str & "&cmd = _notify-validate"
objHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
objHttp.open("POST", "https:www.paypal.com/cgi-bin/webscr", False)
objHttp.send(str)

Dim item_name = Request.Form("item_name")
Dim Receiver_email = Request.Form("receiver_email")
Dim intRotaID = Convert.ToInt32(Request.Form("item_number"))
Dim intInvnum = Request.Form("invoice")
Dim intQty = Convert.ToInt32(Request.Form("quantity"))
Payment_status = Request.Form("payment_status")
Dim decPrice = Convert.ToDecimal(Request.Form("payment_gross"))
Txn_id = Request.Form("txn_id")
Dim Payer_email = Request.Form("payer_email")

If (objHttp.status <> 200) Then
addHit("Paypal", "NOT 200")
'HTTP error handling
ElseIf (objHttp.responseText = "VERIFIED") Then
addHit("Paypal", "VERIFIED")
ElseIf (objHttp.responseText = "INVALID") Then
addHit("Paypal", "INVALID")
Else
'error
End If
objHttp = Nothing
'Put user code to initialize the page here
End Sub



#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 25 August 2003 - 04:07 PM

Try this: http://www.paypaldev...p?TOPIC_ID=1658

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users