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
Hey gzuz so i ran into a small problem. I've got most of it configured, kinda rigged to work for the moment, but when i go to select the spec of the item and what character to send it to, i get "You are higher than the maximum level allowed for donation of xp" error.
Cant figure it out
Was wondering if you came across the clan files yet that you were looking for
Enable debugging in web.config and let me see the error.
You need this to make it work properly....
View attachment LevelListUpdater.zip
Check the bin folder ---> release ----> Ranking.zip.
Should be all you need.