YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

change XML code or remove? Options
mtm81
#1 Posted : Friday, February 07, 2003 12:24:02 AM
Rank: Starting Member

Groups: Registered

Joined: 2/6/2003
Posts: 6
Location: ,
Hi, MY standard Paypal Generated IPN code is falling over when trying to create the XML Parser thingy.. I've checked my server with my hosting provider and an XML sniffer and find that MSXML2 v2.6 is the problem... however the snifer also says that MSXML2 v3.0 and MSXML2 v4.0 are installed. How do i alter my code to accept these instead?? If none of these are possible - how do I go about removing the need for the XML parser... My current code is: ' 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 Anyone help? Regards, Regards, James
Sponsor  
 
paypal_pb
#2 Posted : Friday, February 07, 2003 2:37:35 AM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Check out http://www.paypaldev.org/topic.asp?TOPIC_ID=71

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
mtm81
#3 Posted : Friday, February 07, 2003 8:58:44 AM
Rank: Starting Member

Groups: Registered

Joined: 2/6/2003
Posts: 6
Location: ,
Right, I've tried altering my code to reflect the differing version of XML available however none of them work... I get the "cannot create object" error for everything...

Therefore I think it ould be easiest if I simply removed this bloody XML thing just to get it working...

As I am using the script available on the paypal site, which parts do I remove...

I've tried simply removing the 'chunk' of code relating to the XML parser but the ojbHTTP thingy is referenced further down my code
and therefore creates another error..

What do I remove???

Regards,


Regards,

James
paypal_pb
#4 Posted : Friday, February 07, 2003 5:09:30 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Comment out or delete:

' 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

Change:

' Check notification validation
if (objHttp.status <> 200 ) then
' HTTP error handling
elseif (objHttp.responseText = "VERIFIED") then
' check that Payment_status=Completed
' check that Txn_id has not been previously processed
' check that Receiver_email is an email address in your PayPal account
' process payment
elseif (objHttp.responseText = "INVALID") then
' log for manual investigation
else
' error
end if
set objHttp = nothing
%>

to:

' check that Payment_status=Completed
' check that Txn_id has not been previously processed
' check that Receiver_email is an email address in your PayPal account
' process payment
%>

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
mtm81
#5 Posted : Friday, February 07, 2003 8:17:00 PM
Rank: Starting Member

Groups: Registered

Joined: 2/6/2003
Posts: 6
Location: ,
Thank you very much - it is greatly appriciated.

Regards,

James

Regards,

James
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.169 seconds.