Hello there.
New to the .NET framework and XML but familiar with ASP.
I'm trying to set up the Instant Payment Notification service for PAYPAL
payments and the code they provided to process the validation was using
Microsoft XML SDK 3.0 which was replaced by the .NET framework.
The code PayPal offered for ASP was as follows;
==============
<%@LANGUAGE="VBScript"%>
<%
Dim str, OrderID, Txn_id, Payment_status Dim objHttp
str = Request.Form
OrderID = Request.Form("item_number")
Txn_id = Request.Form("txn_id")
Payment_status = Request.Form("payment_status")
' post back to PayPal system to validate str = str & "&cmd=_notify-validate"
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false
objHttp.Send str
' Check notification validation
if (objHttp.status <> 200 ) then
' HTTP error handling
elseif (objHttp.responseText = "VERIFIED") then
' process payment
elseif (objHttp.responseText = "INVALID") then
' possible fraud
else
' error
endif %>
=============
Now I as far as I can figure out I need to replace the
"Server.CreateObject("Msxml2.ServerXMLHTTP") " with the HTTPRequest and
HTTPresponse object found within the NAMESPACE......... But I have no idea
how to address the HTTPresponse/request properties or methods to do the same
thing as the code provided above.
Any help or a point in the right direction (even if somebody has encountered
the same circumstance) would be appreciated.
spence