我正在使用贝宝购买按钮在我的网站上。为了测试的目的,我使用贝宝沙盒帐户。问题是,当我点击buy now按钮时,它会将我带到沙箱登录页面,而我还没有登录。以下是我的“立即购买”按钮代码
<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="skariz_1316503728_biz@gmail.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="PSYC">
<input type="hidden" name="amount" value="2.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="custom" value="test@test.com">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>发布于 2011-09-21 00:07:56
我相信沙箱帐户按钮要求您登录到您的沙箱帐户使用它。如果我没记错的话,上次我使用IPN时,我不得不这么做。也可能有一个部分,您创建测试客户沙箱帐户,但我记不起来了。
https://stackoverflow.com/questions/7481811
复制相似问题