agentk Posted September 14, 2008 Share Posted September 14, 2008 Hi I am trying to find the old original paypal code that allows me to redirect a customer to a specific link after successfull payment and to yet a different link if they cancelled the payment half way in. I used to be able to get all that through paypal... or even google... but for some reason I can not find it anywhere. Here is what I got: <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="me@hotmail.com"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="$<?php echo $quantity ?> Article Order for <?php echo $visitor ?>"> <input type="hidden" name="amount" value="<?php echo $quantity ?>"> <input type="submit" value="Complete Your Order Now!" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> Secondly, I want to automatically redirect all my aweber list subscribers to paypal checkout. For example: When people subscribe to my list (using the code below) I want them to subscribe to my list, yet at the same time I want it to have the same effect as if they would click on the payment button above. So in one sense... two submissions with one click. Is that duable? Here is my aweber code: <FORM action=http://www.aweber.com/scripts/addlead.pl method=post> <div align="right"> <INPUT type=hidden value=1718226460 name=meta_web_form_id> <INPUT type=hidden name=meta_split_id> <INPUT type=hidden value="su-success" name=unit> <INPUT type=hidden value=http://www.mygreatempire.com/success/su2.html name=redirect> <INPUT type=hidden value="Barry-AS" name=meta_adtracking> <INPUT type=hidden value=1 name=meta_message> <INPUT type=hidden value=from,name name=meta_required> <INPUT type=hidden value=0 name=meta_forward_vars> First Name: <INPUT name=name> Email Address: <INPUT name=from> <INPUT type=submit value="Click For Online Wealth" name=submit> </FORM> I sincerly hope this is duable. If not, what would come close? Thanks a Billion in Advance! Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 14, 2008 Share Posted September 14, 2008 <input type="hidden" name="return" value="http://www.example.com/thanks.html"> <input type="hidden" name="cancel_return" value="http://www.example.com/donate.html"> Should do it. Quote Link to comment Share on other sites More sharing options...
agentk Posted September 15, 2008 Author Share Posted September 15, 2008 Excellent... thanks a million, that is JUST what I needed! For the second question: Is there a way to have a double reaction happening with the click of 1 button? Like... when a user hits "subscribe" to my mailing list, is it possible to automatically send them to the paypal checkout page? Not sure if the previous or even this description makes sense. Let me know if you need further explanation. Thanks again DanielO Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 15, 2008 Share Posted September 15, 2008 I suppose you could use some javascript to send them somewhere. You shouldn't rely on that though. Normally, it's one action for one form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.