我有一个支付形式的网站,我想补充定期付款。 会怎么做呢? 什么ID
的,我需要的表单字段使用?
我看到了一个WordPress
plugin
使用a3
t3
和p3
像这样:
<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;" />
我不知道什么a3
只是t3
是有史以来交易多久发生, p3
是多少次发生。
我看了一点点在网络上,我发现如何使PayPal
按钮某种产品与定期付款。 但我需要它来动态地输入。
谢谢。
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>
必填字段:
a3
:常规速度。 这是订阅价格
p3
:正常结算周期。 这是结算周期的长度。 的数量由常规计费周期单位改性(T3,下文)
t3
:正常结算周期的单位。 这是正常结算周期(P3,以上)可接受值的单位:d(天),W(周),M(月),Y(年)
no_note
:该字段可以确保你的用户不提示包括与订阅的说明,其中贝宝租用不支持的功能。 此字段必须包含,并且该值必须被设置为1。
来源: 租费和循环付款指南来自PayPal。
需要注意的是不可选的领域是很重要的src
(在上面的文档也描述)认购的第一笔交易后刚届满,threfore它不复发:
src
:定期付款。 如果设置为“1”的支付会复发,除非你的客户取消了结算周期结束之前认购。 如果省略,认购款项将不会在结算周期结束复发。