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

INVALID message from ipn Options
ramkiasp
#1 Posted : Wednesday, April 13, 2005 8:15:04 AM
Rank: Starting Member

Groups: Registered

Joined: 4/13/2005
Posts: 1
Location: ,
hello, i have tried a lot more times to run ipn successfully but i faild. every time its sending INVALID response. i am using asp code. i tried in sandbox aswell as in real time. can any one help.... here is my asp code for ipn posting.. i have used different posting urls for sandbox as well as in real time... for sandbox -- https://www.sandbox.paypal.com/cgi-bin/webscr for real time ---- https://www.paypal.com/cgi-bin/webscr <% 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 response.write("committed error") 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 response.write("iam verified <br>") response.write("Item_name=" & Item_name & "<br>") response.write("Item_number=" & Item_number & "<br>") response.write("Payment_status=" & Payment_status & "<br>") response.write("Payment_amount=" & Payment_amount & "<br>") response.write("Payment_currency=" & Payment_currency & "<br>") response.write("Txn_id=" & Txn_id & "<br>") response.write("Receiver_email=" & Receiver_email & "<br>") response.write("Payer_email=" & Payer_email) elseif (objHttp.responseText = "INVALID") then ' log for manual investigation response.write("manual investigation") else ' error response.write("error occured") end if set objHttp = nothing %> thanks.. psriv
Sponsor  
 
jmercmon
#2 Posted : Tuesday, April 19, 2005 10:45:24 AM
Rank: Starting Member

Groups: Registered

Joined: 1/16/2003
Posts: 14
Location: ,
Take a look at this:

http://jshop.homeip.net/buy_paypal_ipn.cfm

I have developed a very good CF code set for ipn. I think you will be very pleased with it.
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.195 seconds.