【问题标题】:How do I set the 'Description' with PayPal's 'Buy Now' button?如何使用 PayPal 的“立即购买”按钮设置“描述”?
【发布时间】:2016-01-22 02:08:26
【问题描述】:

我有这张图片,我可以在其中设置金额,但我无法设置描述:

 <form action="https://www.paypal.com/cgi-bin/webscr" 
 method="post"   target="_top">
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="upload" value="1">
  <input type="hidden" name="business" value="moneytreelondon@gmail.com">
  <input type="hidden" name="lc" value="US">
  <input type="hidden" name="button_subtype" value="services">

  <input id="total_price_and_postage_rate" type="hidden"
  name="amount" value<%=r.total_price_and_postage_rate_no_commission%>">
 <input type="hidden" name="no_note" value="0">
 <input type="hidden" name="currency_code" value="USD">
 <input type="hidden" name="bn" 
   value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
  <input type="image" src="" border="0" name="submit" alt="Refund">
  <img alt="" [enter image description here][1]border="0" 
   src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif"    
   width="1"    height="1">
  </form>

如何设置“描述”?

【问题讨论】:

    标签: ruby-on-rails paypal payment-gateway


    【解决方案1】:

    你可以用这个表单标签来设置描述

    <input type="hidden" name="item_name" value="Your Desc">
    

    省略 item_nameamount 标签将使您的客户在 PayPal 结帐页面中进行手动输入

    【讨论】:

    • 我知道你可以这样做,但我希望这个字段像“金额”字段一样自动填充。
    • ">
    • 根据我的回答,将您的预设值放入此标签 &lt;input type="hidden" name="item_name" value="Your Desc"&gt; 将使其在结帐页面中自动填充,就像您对 amount 所做的一样
    猜你喜欢
    • 2010-12-04
    • 2013-08-30
    • 2015-09-22
    • 2013-01-03
    • 2014-10-05
    • 2014-08-03
    • 2013-11-02
    • 2014-09-15
    • 1970-01-01
    相关资源
    最近更新 更多