PayPal Return Page / Success Page issue

佐手、 提交于 2019-12-22 00:57:59

问题


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="X@gmail.com" />
                <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="X@gmail.com"> 
                <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


回答1:


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.



来源:https://stackoverflow.com/questions/8692569/paypal-return-page-success-page-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!