panky sharma
panky sharma

Reputation: 2159

PayPal Return Page / Success Page issue

I am using PayPal minicart on a BuyNow Page.But Problem is that User doesn't redirects back to the return page after completing the traction on PayPal Website. Although transaction has been successfully completed but there was no redirect to the return page ( http://XXX.org/BuyerInfo.aspx )

Here is the code

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <fieldset style="float:none">
                <input type="hidden" name="cmd" value="_cart" />
                <input type="hidden" name="add" value="1" />
                <input type="hidden" name="business" value="[email protected]" />
                <input type="hidden" name="item_name" value="Product 1" />
                <input type="hidden" name="amount" value="6.00" />

                <input type="hidden" name="currency_code" value="USD" />




<input type="hidden" name="return" value="http://XXX.org/BuyerInfo.aspx" />



                <input type="hidden" name="cancel_return" value="http://XXX.org" />

                <ul id="centerFix" style="text-align:justify"  >
                    <li class="centerf"><strong>Price</strong>: $6.00</li>

                </ul>

                <input type="submit" name="submit" value="Add to cart" class="button" />
            </fieldset>

        </form>


        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="last"> 
            <fieldset>
                <input type="hidden" name="business" value="[email protected]"> 
                <input type="hidden" name="cmd" value="_cart"> 
                <input type="hidden" name="display" value="1"> 
                <input type="submit" name="submit" value="View your cart" class="button">
            </fieldset>
        </form>

Thanks

Upvotes: 1

Views: 3249

Answers (1)

Robert
Robert

Reputation: 19356

Website Payments Standard only redirects automatically if:

  1. 'Auto Return' has been enabled on the PayPal account (via Profile > My selling tools)
  2. The buyer is a registered PayPal buyer

If the buyer is not a registered PayPal buyer, they'll have to click the orange "Return to merchant" button.

If you set 'return', this will override whatever value you specify as the return URL in the 'Auto Return' settings.

Can you clarify why you need the buyer to be returned back? There are better, more secure ways to provide you with information when the transaction has been completed, if that's what you need it for.

Upvotes: 3

Related Questions