Paypal button with autoreturn

Discussion in 'PayPal' started by media12, Mar 21, 2007.

  1. #1
    I've done a paypal button and when people clicks on it, they get to paypal and login to their account, then press Pay. Then are then seeing a page on paypal that sais thank you for your payment or something like that. There's also a button for return to merchant. But they are not beeing redirected back to my page.

    Why aren't they beeing redirected back to my page automatically when pressing Pay?

    My button-code
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="mypaypal@email.com">
    <input type="hidden" name="item_name" value="Money Deposit">
    <input type="hidden" name="item_number" value="<?php echo $user_id; ?>">
    <input type="hidden" name="amount" value="<?php echo $amount; ?>">
    <input type="hidden" name="no_shipping" value="0">
    <input type="hidden" name="return" value="http://www.site.com/return.php?id=<? echo $user_id; ?>&amount=<?php echo $amount; ?>">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-BuyNowBF">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    Code (markup):
     
    media12, Mar 21, 2007 IP