Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PayPal IPN Woes

Status
Not open for further replies.

hdog

Technical User
Mar 24, 2002
26
US
I have been trying to get perform a validation on my page which receives a URL string from PayPal IPN and then reposts the string to PayPal with an additional variable appended to the end of the string. I am supposed to get a "Verified" response back but instead keep getting back a "Invalid" response. Can anyone help?

Here is the string I am posting back to PayPal...


Here is my code (I'm using linked text for now but can see the variables being passed into my asp form):

<A HREF=" Request.QueryString()+"&cmd=_notify-validate"%>">Related</A>
 
Is what you provided copied and pasted from your code? If so, you have a misplaced semicolon between the first < and the %. I see the semicolon in the URL you post, too, right before cm=.

If you're using VBScript for your ASP, the plus sign should be a & as well, though what you have is correct for JScript ASP.

Lee
 
I'm not sure where the mystery ; came from but it is not in my URL string that I posted. Looks like it was a typo. Here is what paypal is posting to my asp page...



And here is what I'm posting back to paypals server...


Neither have the ";" you spotted. Any other thoughts?
 
There's that darn ";" again! It must be getting changed with this text box.

Let me try putting it in without the http....

This is from PayPal...

mysite/mypage.asp?tx=2RG187287Y458622J&st=Completed&amt=0.02&cc=USD&cm=&sig=nMOhUXiC2Q3IwOU5D7rR9lX5vWuHDW81IrfDtis2%2bYkDQFDviMKXwD0PNfYJg6V5OAkczJMegGtkcnfmzx%2bTomWXrFWjRNkqlgTWZlcYyP8u6OEMjJmTmJjZJGMKJK3KBLOuzuKdWlhodgVWA%2fY8WSSO3TcvR7hqDb0MwRCqVdU%3d

This is what I am reposting(omited the
.sandbox.paypal.com/cgi-bin/webscr?tx=2RG187287Y458622J&st=Completed&amt=0.02&cc=USD&cm=&sig=nMOhUXiC2Q3IwOU5D7rR9lX5vWuHDW81IrfDtis2%2bYkDQFDviMKXwD0PNfYJg6V5OAkczJMegGtkcnfmzx%2bTomWXrFWjRNkqlgTWZlcYyP8u6OEMjJmTmJjZJGMKJK3KBLOuzuKdWlhodgVWA%2fY8WSSO3TcvR7hqDb0MwRCqVdU%3d&cmd=_notify-validate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top