这是我的 Paypal 按钮的代码:
<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="[email protected]">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="0">
<input type="hidden" name="return" value="http://www.example.com">
<input type="hidden" name="item_name" value="My Item">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-BuyNowBF:proceed_btn.gif:NonHosted">
<input type="hidden" name="item_number" value="4BD9569402CDE">
<input type="image" src="http://www.example.com/image.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
是否可以添加item_number
到返回 URL?
例如,在 PayPal 内完成付款后,用户将被发送回http://www.example.com?item_number=4BD9569402CDE
我记得在他们的文档中读到,您可以添加一个具有任何自定义值的新隐藏字段,该字段将被发回给您。
您可以将该字段用于您想要的任何内容 - 不过,我不记得它是如何调用的,抱歉,但是如果您手头有文档,您会很容易找到它。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)