Search code examples
asp.netvisual-studiopaypallocalhostpaypal-ipn

Error: Redirect to a localhost from a Paypal sandbox IPN


I have implemented a Paypal structure through my page button it direct to a paypal sandbox, payment being performed.

form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
    <input type="hidden" name="business" value="[email protected]" />
    <input type="hidden" name="item_name" value="Red Jacket" />
    <input type="hidden" name="item_number" value="7601" />
    <input type="hidden" name="amount" value="125.00" />
    <input type="hidden" name="no_shipping" value="2" />
    <input type="hidden" name="no_note" value="1" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="bn" value="PP-BuyNowBF" />
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.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" />

        <input type="hidden" name="return" value="localhost:53237/WebSite17/Default.aspx" />


     <div></div>

    </form>

Now when i am trying to redirect to a localhost, its showing an error. I need to ask is it possible to redirect to a localhost from a paypal, and if it is possible then how shall i implement this. thanks for any assistance.


Solution

  • try http:// in front of the localhost