【发布时间】:2016-04-09 13:09:45
【问题描述】:
我正在使用简单的 Paypal 购买按钮的 html 代码,但想知道是否可以设置一个自动返回 url 而不必通过我自己的 Paypal 帐户来设置?
我不能那样做,因为它是一个 localhost 网站(无法验证真实网站),而且我没有通过我的销售工具创建按钮。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="email@email.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Demo">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="return" value="~/">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif">
</form>
【问题讨论】: