简体   繁体   English

标准贝宝方法中具有动态金额的定期贝宝付款

[英]Recurring Paypal payment with dynamic amount in Standard paypal method

I have one simple PayPal Standard HTML form with 3 textbox and one button . 我有一个简单的PayPal标准HTML表单,其中包含3个文本框和一个按钮。

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

Now when user clicks on a button, it redirects to PayPal for payment process as I have used PayPal standard method. 现在,当用户单击按钮时,因为我使用了PayPal标准方法,它重定向到PayPal进行付款过程。

I want the amount to be processed from textbox1 and another amount should process automatically on a specific date. 我希望从textbox1处理金额,而另一个金额应在特定日期自动处理。

Can someone please help out me to achieve this ? 有人可以帮我实现这一目标吗?

This isn't a simple bit of programming. 这不是简单的编程。

Why don't you use a third party like Stripe to handle this for you? 您为什么不使用像Stripe这样的第三方来为您处理呢? It's built in and will be a lot easier for you to setup and you could focus on creating a decent custom dashboard where you could pull via the API of Stripe customer information and opportunity to change/cancel their subscription? 它是内置的,对您来说将更容易设置,您可以集中精力创建一个不错的自定义仪表板,在这里您可以通过Stripe客户信息的API提取信息并有机会更改/取消他们的订阅?

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

This is the reference URL 这是参考网址

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/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 https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html_example_subscribe/#product-options-as-text-boxes

Ex. 防爆。 This sample HTML code illustrates a basic Subscribe button with these features: 此示例HTML代码说明了具有以下功能的基本“订阅”按钮:

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

  • No trial periods. 无试用期。 A subscription price of $5.00 USD. 订购价为5.00美元。 A monthly billing cycle. 每月结算周期。 The subscription ends only when the merchant or subscriber cancels it. 仅当商家或订户取消订阅时,订阅才结束。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM