【问题标题】:Paypal subscription button, dynamin amountPaypal订阅按钮,动态金额
【发布时间】:2013-06-09 20:46:20
【问题描述】:

我必须使用贝宝订阅按钮。它工作正常。我的问题是,如果我们可以使金额动态化。如果不是,那么配置具有动态金额的订阅计划的最佳选择是什么。 我当前的按钮代码是

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
      <input name="custom" type="hidden" id="custom" value="<?php echo $this->uri->segment(3); ?>">
     <input type="hidden" name="cmd" value="_s-xclick">
     <input type="hidden" name="hosted_button_id" value="valuedummy">
     <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

【问题讨论】:

    标签: paypal paypal-subscriptions


    【解决方案1】:

    尝试一下这段代码

    <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    <input type="hidden" name="business" value="me@mybusiness.com">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="no_shipping" value="1">
    <input type="image" src="http://www.paypal.com/en_GB/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="a3" value="5.00">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="M">
    <input type="hidden" name="src" value="1">
    <input type="hidden" name="sra" value="1">
    </form>
    

    或点击linkPaypal subscription button

    【讨论】:

      【解决方案2】:

      我目前正在开发一个 Paypal 订阅页面,用户可以在其中选择多个订阅(单选按钮)。每个单选按钮都有我需要的属性值:

      <input id="4" class="packageRadio" type="radio" value="4" data-desc="6 month package" data-type="M" data-period="6" data-amount="240.00" data-count="2" name="package">
      

      当用户选择一个包时,单选按钮上的 jQuery click 事件函数会将所需的值添加到我的 Paypal 表单中。

      【讨论】:

      • 顺便说一句,您的表单看起来不适合定期订阅,请查看 Naveen 发布的表单
      • 我从贝宝生成此代码。请告诉我贝宝如何识别此请求是从我这边发送的。我们是否为此使用
      • Paypal 有许多按钮生成器 - 您需要使用其中一个进行订阅。是的,“业务”输入是正确的。
      猜你喜欢
      • 2011-11-30
      • 2013-06-15
      • 2015-04-13
      • 2019-03-27
      • 2021-11-12
      • 2021-05-05
      • 1970-01-01
      • 2014-10-21
      相关资源
      最近更新 更多