【问题标题】:Simple Button with ability for user to enter the amount on my site简单的按钮,用户可以在我的网站上输入金额
【发布时间】:2015-10-06 02:14:26
【问题描述】:

我是贝宝的新手。我想在我的网站上使用一个简单的 PayNow 按钮。问题是我希望我的网络用户在我的网站上输入他们想要支付的任何金额,并在单击“支付”按钮时将其转移到贝宝。

此选项似乎不适用于任何按钮类型。他们需要预设金额或在 PP 网站上输入金额。深入学习 API 是我唯一的选择吗?

谢谢,迈克

【问题讨论】:

    标签: payment


    【解决方案1】:

    这可能是你需要的:

        <form name="input" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="add" value="1">
        <input type="hidden" name="cmd" value="_xclick">
        <input type="hidden" name="business" value="YOUR BUSINESS NAME">
        <input type="hidden" name="item_name" value="ITEM NAME">
        <input type="hidden" name="item_number" value="ITEM ID NUMBER">
        Other amount: €<input type="text" maxlength="200" style="width:50px;" name="amount" value="5.00"> EUR<br />
        <input type="hidden" name="currency_code" value="EUR">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" alt="PayPal - The safer, easier way to pay online!">
        </form>

    将变量business的值改为接收者邮箱,即:

    <input type="hidden" name="business" value="receiver@email.com">
    

    您可能想阅读HTML Variables for PayPal Payments Standard - PayPal Developer

    【讨论】:

      猜你喜欢
      • 2015-12-14
      • 2013-04-24
      • 2012-02-18
      • 2016-09-09
      • 1970-01-01
      • 1970-01-01
      • 2014-09-22
      • 2020-02-11
      • 2022-11-03
      相关资源
      最近更新 更多