【发布时间】:2018-10-05 03:52:02
【问题描述】:
我有这个 paypal 按钮:
<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="myPayPalAccount@gmail.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="item-to-buy">
<input type="hidden" name="amount" value="5">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="return" value="mywordpressblog.com/return-url/">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="Pay Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
如何在自定义 WordPress 页面的退货网址 (mywordpressblog.com/return-url/) 中获取所有付款详情?
我至少需要知道付款是否成功,并显示一条后续消息并更新数据库。
提前感谢您的建议。
【问题讨论】: