<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="custom" value="{MYUNIQUEID}">
<input type="hidden" name="hosted_button_id" value="{MYHOSTEDBUTTONID}">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
目前情况下,客户不太可能支付两次,但我注意到当沙盒出现故障时,我成功地支付了同一笔交易两次。这是我绝对想要避免的事情。这不仅为了客户,他们可以获得退款,而且也因为我不想让我的数据库混乱,我想避免进行大量编码来捕捉重复付款...