|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/28/2003 Posts: 3 Location: ,
|
I am posting, in part, this to you:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"><input type="hidden"
name="return"
value="http://www.cardsandinvites.com/many/paypal_success.asp">
<input type="hidden" name="rm" value="2">
The payment process goes smoothly until I "continue" back to my site. The form is there with all of the hidden variables, but I am not receiving any form fields. I get the following error:
Request object error 'ASP 0101'
Unexpected error
/many/paypal_success.asp, line 5
The function returned |.
Line 5 is:
For Each strKey In Request.Form
If I copy the form from the source of PayPal's page, and test with it locally, everything works fine. Is it because I am posting back to an insecure page? Is my server not accepting them? Any insight you can provide will be greatly appreciated.
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/17/2002 Posts: 2,139 Location: ,
|
Is your return page set to handle a post? Stephen Ivaskevicius PayPal/eBay, Inc. www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/28/2003 Posts: 3 Location: ,
|
Yes, it is. I made a test page on my server that posts to it successfully -- i.e. it receives the form fields and processes based on their values.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
So if you click "Continue" on the PayPal page, you get an error, but if you save that source, open the file in a browser and click "Continue" it works OK? Those two should work identically. You might have a look at our sample code which specifically does this routine differently for reliability (i.e., does not use "For each"). http://www.paypal.com/cg...cl/rec/ipn-code-outside
Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/28/2003 Posts: 3 Location: ,
|
Yep, it's completely wierd. I appreciate the code samples, and will no doubt move to the IPN system in the future. For the moment though, I'm trying to keep it simple. I ended up solving the problem by passing the key piece of data as part of the return URL. Go figure. It's probably my server.
Thanks so much for your help. Lauren
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.280 seconds.