简体   繁体   English

贝宝定期付款表格

[英]paypal recurring payments form

I have a website with a payment form, I want to add recurring payments. 我有一个带有付款表格的网站,我想添加定期付款。 how would i do that? 我该怎么办? what ID 's do I need to use in the form fields? 我需要在表单字段中使用什么ID

I saw a WordPress plugin that uses a3 t3 and p3 like so: 我看到了一个使用a3 t3p3WordPress plugin ,如下所示:

    <input type="hidden" name="a3" id="a3" value="" />
<p class="donate_recur"><label for="recur">Repeat Donation</label>
<select name="t3" id="t3">
                <option value="0"> Do not repeat </option> 
                 <option value="D"> Daily </option> 
                 <option value="W"> Weekly </option> 
                 <option value="M"> Monthly </option> 
                 <option value="Y"> Yearly </option> 
 </select> x 
<input name="p3" id="p3" value="'.$dplus['duration'].'" type="text" style="width:10px;" />

I'm not sure what a3 is but t3 is ever how long the transaction will happen, and p3 is how many times it will happen. 我不确定a3是什么,但是t3是事务将发生多长时间,而p3是它将发生多少次。

I looked a little on the web and i found how to make a PayPal button for some kind of product with recurring payments. 我在网上浏览了一下,发现如何为具有重复付款功能的产品制作PayPal按钮。 but I need it to be dynamically inputted. 但我需要将其动态输入。

thank you. 谢谢。

a3 - amount to billed each recurrence
p3 - number of time periods between each recurrence
t3 - time period (D=days, W=weeks, M=months, Y=years)


<form 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_US/i/btn/btn_subscribe_LG.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>

Mandatory fields are: 必填字段为:

a3 : Regular rate. a3 :正常汇率。 This is the price of the subscription 这是订阅的价格

p3 : Regular billing cycle. p3 :常规计费周期。 This is the length of the billing cycle. 这是计费周期的长度。 The number is modified by the regular billing cycle units (t3, below) 该数字已通过常规结算周期单位(以下t3)进行了修改

t3 : Regular billing cycle units. t3 :常规计费周期单位。 This is the units of the regular billing cycle (p3, above) Acceptable values are: D (days), W (weeks), M (months), Y (years) 这是常规计费周期的单位(以上p3)。可接受的值为:D(天),W(周),M(月),Y(年)

no_note : This field makes sure your subscriber is not prompted to include a note with the subscription, a function which PayPal Subscriptions does not support. no_note :此字段可确保不提示您的订阅者在订阅中包含注释,而PayPal订阅不支持该功能。 This field must be included, and the value must be set to 1. 必须包含此字段,并且值必须设置为1。

Source: Subscriptions and recurring Payments Guide from PayPal. 资料来源:贝宝(PayPal)的订阅和定期付款指南

It's important to note that without the optional field src (also described in the doc above) the subscription expires just after the first transaction and threfore it's not recurrent: 重要的是要注意,如果没有可选字段src (也在上面的文档中进行了描述),订阅将在第一个事务之后到期,并且因此不会重复发生:

src : Recurring payments. src :定期付款。 If set to “1,” the payment will recur unless your customer cancels the subscription before the end of the billing cycle. 如果设置为“ 1”,则除非您的客户在计费周期结束之前取消订阅,否则付款将重复进行。 If omitted, the subscription payment will not recur at the end of the billing cycle. 如果省略,则订阅费用将不会在结算周期结束时再次发生。

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

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