【问题标题】:Paypal button return url to WordPress and display payment informationsPaypal 按钮将 url 返回到 WordPress 并显示付款信息
【发布时间】: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/) 中获取所有付款详情?

我至少需要知道付款是否成功,并显示一条后续消息并更新数据库。

提前感谢您的建议。

【问题讨论】:

    标签: php wordpress paypal


    【解决方案1】:
    • mywordpressblog.com/return-url/ --> 只重定向到页面成功,所以如果您在完成后检查详细付款可以使用 IPN Paypal。
    • Paypalother search 上的文档开发

    【讨论】:

      猜你喜欢
      • 2015-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-03
      • 2020-04-07
      • 2021-01-11
      • 2018-10-27
      • 2014-09-17
      相关资源
      最近更新 更多