Paypal sends an HTTP post to a specified web url when payment is completed.This is specified by the code sending that detail when the user clicks the link to paypal. Post returns to an aspx page which then adds the coins to the users account based on post information. Simple.
See IPN.aspx.vb
Try
'Dim testipn As String = ""
' For Each x In Request.Form
'testipn = testipn & " " & Request.Form(x)
' Next
Dim paymentstatus As String = Request.Form("payment_status")
Dim txnid As String = Request.Form("txn_id")
Dim receiveemail As String = Request.Form("receiver_email")
Dim amount As String = Request.Form("mc_gross")
Dim currency As String = Request.Form("mc_currency")
Dim userid As String = Request.Form("custom")
Dim itemname As String = Request.Form("item_name")
Dim payer As String = Request.Form("payer_email")
Dim testipn As Integer = Request.Form("test_ipn")
SqlDataSource1.InsertCommand = "INSERT INTO [paypal] ([pstatus], [txnid], [remail], [amount], [currency],[userid],[payeremail],[itemname],[testipn]) VALUES ('" & paymentstatus & "','" & txnid & "','" & receiveemail & "','" & amount & "','" & currency & "','" & userid & "','" & payer & "','" & itemname & "','" & testipn & "')"
SqlDataSource1.Insert()
Catch ex As Exception
Dim userid As String = Request.Form("custom")
SqlDataSource1.InsertCommand = "INSERT INTO [paymenterrors] ([date],[exception], [userid]) VALUES ('" & Now.Date & "','" & ex.ToString & "','" & userid & "')"
SqlDataSource1.Insert()
End Try
- - - Updated - - -
Enable debugging in web.config and let me see the error.
- - - Updated - - -
You need this to make it work properly....Attachment 163112
- - - Updated - - -
Check the bin folder ---> release ----> Ranking.zip.
Should be all you need.

