|
TrudyD1474 -> RE: Update DB with PayPal data (8/9/2006 21:10:25)
|
error message quote:
Object required: '' /registration/payment_confirmation.asp, line 82 code line 82 is in red....... quote:
<html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Payment Confirmation</title> </head> <body> <p><b><font size="4">Thank you for your payment.</font></b> </p> <p>Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at <a href="https://www.sandbox.paypal.com/us/">www.sandbox.paypal.com/us</a> to view details of this transaction. .</p> <p><img border="0" src="2_workers.gif" width="600" height="32"></p> <%@LANGUAGE="VBScript"%> <% Dim authToken, txToken Dim query Dim objHttp Dim sQuerystring Dim sParts, iParts, aParts Dim sResults, sKey, sValue Dim i, result Dim itemNumber, firstName, lastName, itemName, mcGross, mcCurrency authToken ="LObybRyuF1ioO7uufP7IhdZwV-bt1mblFLi7X21pr4GAQZYhKfQxZNVAh7y" txToken = Request.Querystring("tx") query = "cmd=_notify-synch&tx=" & txToken & "&at=" & authToken set objHttp = Server.CreateObject("Microsoft.XMLHTTP") ' set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP") objHttp.open "POST", "http://www.sandbox.paypal.com/cgi-bin/webscr", false objHttp.Send query sQuerystring = objHttp.responseText If Mid(sQuerystring,1,7) = "SUCCESS" Then sQuerystring = Mid(sQuerystring,9) sParts = Split(sQuerystring, vbLf) iParts = UBound(sParts) - 1 ReDim sResults(iParts, 1) For i = 0 To iParts aParts = Split(sParts(i), "=") sKey = aParts(0) sValue = aParts(1) sResults(i, 0) = sKey sResults(i, 1) = sValue Select Case sKey Case "item_number" itemNumber = sValue Case "first_name" firstName = sValue Case "last_name" lastName = sValue Case "item_name" itemName = sValue Case "mc_gross" mcGross = sValue Case "mc_currency" mcCurrency = sValue End Select Next Response.Write("<p><h3>Your order has been received.</h3></p>") Response.Write("<b>Details</b><br>") Response.Write("<li>Credit Card Owner: " & firstName & " " & lastName & "</li>") Response.Write("<li>Description: " & itemName & "</li>") Response.Write("<li>Registration No: " & itemNumber & "</li>") Response.Write("<li>Amount: " & mcCurrency & " " & mcGross & "</li>") Response.Write("<hr>") sSQL = "UPDATE Registration SET R_Credit_Card_Payor = '"&lastName&"' WHERE Registratio_ID ="& cLng(itemNumber) Registration.Open Application("Registration_ConnectionString") Registration.Execute(sSQL),,129 Registration.Close Set Registration = Nothing Else 'log for manual investigation Response.Write("ERROR") End If %> </body> </html>
|
|
|
|