【问题标题】:Recurring Paypal payment with dynamic amount in Standard paypal method在标准贝宝方法中以动态金额定期支付贝宝付款
【发布时间】:2019-04-25 03:12:22
【问题描述】:

我有一个简单的 PayPal 标准 HTML 表单,带有 3 个文本框和一个按钮。

textbox 1 : <Amount pay now>
textbox 2 : <Out standing Amount pay on specific date>
textbox 3 : <recurring payment date>

现在当用户点击一个按钮时,它会重定向到 PayPal 进行支付过程,因为我使用的是 PayPal 标准方法。

我希望从 textbox1 处理金额,而另一个金额应在特定日期自动处理。

有人可以帮我实现这个目标吗?

【问题讨论】:

    标签: php html paypal


    【解决方案1】:
    srt - Recurring times
    src - 1 //Subscription payments recur.
    sra - 1. Reattempt failed recurring payments before canceling.
    a3 -  Regular subscription price.
    p3  - Subscription duration. Specify an integer value 
    t3  - Regular subscription units of duration.
          Valid range for p3 is 1 to 90 in D. similarly M, etc
    business - your business email
    item_name - order id / descripiton of item sold
    currency_code - USD / INR
    

    这是参考网址

    https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#recurring-payment-variables

    https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_subscribe/#product-options-as-text-boxes

    例如。此示例 HTML 代码说明了具有以下功能的基本订阅按钮:

    https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_subscribe/#basic-subscribe-button

    • 没有试用期。订阅价格为 5.00 美元。每月一次 结算周期。订阅仅在商家或 订阅者取消它。

    【讨论】:

      【解决方案2】:

      这不是简单的编程。

      您为什么不使用像 Stripe 这样的第三方来为您处理这个问题?它是内置的,设置起来会容易得多,您可以专注于创建一个体面的自定义仪表板,您可以在其中通过 Stripe 客户信息的 API 拉取并有机会更改/取消他们的订阅?

      【讨论】:

        猜你喜欢
        • 2013-09-21
        • 2014-03-08
        • 2014-02-22
        • 2020-06-09
        • 2011-11-19
        • 2010-12-22
        相关资源
        最近更新 更多