Ask a Question related to ASP Database, Design and Development.
-
Fox #1
PayPal Back End Verification
I need to hook up to the PayPal backend for autoverification.
It may be over my head but I thought I could make my
way through it. But, there is one thing I know nothing about
and need to ask if anyone can get me on the right track
If you go to this link and then click on the ASP/VBSCRIPT link
that is on that page, (can't use that link from here, won't work)
[url]http://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/ipn-code-outside[/url]
Anyway, on the resultant page it says (requires MSXML)
and gives this link. [url]http://msdn.microsoft.com/xml[/url]
Obviously this link does nothing to narrow this down at all.
I know nothing about XML and so I have no idea whether
for this application, would I expect this to be a major thing
to learn or just something to install ?
Note that PayPal is impossible to communicate with
since they give you no way to get help from them.
Any help would be appreciated.
Thanks,
Fox
Fox Guest
-
connection verification
Hi I'm a newbie so please take it slow. I'm running win 98 & using coldfusion v6.1. After install I'm trying the compass travel tute but can't set... -
Form verification
Hi there When I try to verify this page of a 4 page form it wont let me! When I copy and paste the form to a new page it will. Can anyone advise or... -
DSN verification failed
Installed eval copy: worked fine Installed serial number copy: verification fails on Data Source Add with the following error message:... -
Account Verification
--Apple-Mail-7-943274467 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Who are you? Are you really... -
Password verification
I have a form (frmpassword) with an unbound text box (text0) I would like for the text box to verify the password against a table... -
Fox #2
Re: PayPal Back End Verification
"Atrax" <atrax@dontspamatrax.co.uk> wrote in message
news:u4viXBUbDHA.1580@tk2msftngp13.phx.gbl...Thanks for the response. It is beginning to set my mind>> > Anyway, on the resultant page it says (requires MSXML)
> MSXML is included with Windows 2000 or better, so you shouldn't need to
> install it, unless this code requires an updated version.
>
> ________________________________________
> Atrax. MVP, IIS
> [url]http://rtfm.atrax.co.uk/[/url]
>
> newsflash : Atrax.Richedit 1.0 now released.
> [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
at ease. I was hoping it did not involve another trip
to cosmic consciousness (G)
Seriously. I posted the sample code code here so that if there is
something that you or anyone reading this notices
that is a flag to tell me that I need to do something
with MSXML specifically, this could help me avoid
an unexpected pitfall. I do notice they have options
for XML which I am guessing would relate to versions.
Can you also tell me how I find out which version I have ?
Now I am wondering how can I test to see if XML is
working properly on my system ? Would you suggest
a reference book or do I not need one ?
Thanks,
fox
Dim Item_name, Item_number, Payment_status, Payment_amount
Dim Txn_id, Receiver_email, Payer_email
Dim objHttp, str
' read post from PayPal system and add 'cmd'
str = Request.Form & "&cmd=_notify-validate"
' post back to PayPal system to validate
set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
' set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
' set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
objHttp.open "POST", "https://www.paypal.com/cgi-bin/webscr", false
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.Send str
' assign posted variables to local variables
Item_name = Request.Form("item_name")
Item_number = Request.Form("item_number")
Payment_status = Request.Form("payment_status")
Payment_amount = Request.Form("mc_gross")
Payment_currency = Request.Form("mc_currency")
Txn_id = Request.Form("txn_id")
Receiver_email = Request.Form("receiver_email")
Payer_email = Request.Form("payer_email")
' 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 your Primary PayPal email
' check that Payment_amount/Payment_currency are correct
' process payment
elseif (objHttp.responseText = "INVALID") then
' log for manual investigation
else
' error
end if
set objHttp = nothing
Fox Guest



Reply With Quote

