2014-06-12 67 views
0

我正在尝试将订阅按钮集成到我的一个页面中,但目前我们无法理解该按钮的工作原理。Paypal订阅在首次付款后过期

https://www.paypal.com/en/cgi-bin/webscr?cmd=_pdn_subscr_techview_outside,我必须设置下进行捐赠,每月

a3 5.00 
p3 1 
t3 M 

说明如下:

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) 

通过以上所述,订阅启动的选项,一付款和订阅到期后不久。贝宝的订阅详细信息页面说,最大周期为1.

我的假设是,p3将重复设置为1.支付已完成,并且订阅已过期,因为最大周期已被命中。

另一个理论是,这种自动过期行为是因为我在早些时候(~3h前)验证了我的PayPal帐户而导致的。也许它需要一些时间来宣传我的新地位?

我想知道为什么会导致这种行为,以及如何将周期设置为更高的数量(永久?)。

我的按钮的代码可以在这里找到http://pastebin.com/vSxVq4tf

回答

1

好吧,它看起来像这样是paypal javascriptbuttons SDK中的一个错误(或缺少的功能?)。此行为是由于src参数丢失而引起的,该参数似乎没有记录在任何地方。

src=1添加到按钮后,订阅从for one month更改为each month。我提交了一个拉取请求,目前正在等待PayPal人员的批准。

0

这是一个基本的PayPal标准的开源订阅按钮设置为$ 10.00,每月一次和永无止境的。

A3 =量
P3 =次数来账单,即1 =一个月一次
T3 =(当计费发生),即每月

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 
<input type="hidden" name="cmd" value="_xclick-subscriptions"> 
<input type="hidden" name="business" value="[email protected]"> 
<input type="hidden" name="lc" value="US"> 
<input type="hidden" name="item_name" value="Testing Subscription"> 
<input type="hidden" name="no_note" value="1"> 
<input type="hidden" name="no_shipping" value="2"> 
<input type="hidden" name="src" value="1"> 
<input type="hidden" name="a3" value="10.00"> 
<input type="hidden" name="p3" value="1"> 
<input type="hidden" name="t3" value="M"> 
<input type="hidden" name="currency_code" value="USD"> 
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted"> 
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
</form> 
+0

可悲的是,这似乎并不奏效。我找不到任何错误的代码 - http://pastebin.com/vSxVq4tf任何想法? – dvcrn

+0

如果您使用的是基本PayPal按钮,则需要添加与您的PayPal商户帐户相关的已确认电子邮件地址。如果您的代码存在错误,则需要发布代码,以便我们可以看到它。 PayPal按钮示例直接来自PayPal.com帐户,并且如果正确的PayPal电子邮件隶属于PayPal帐户,它就会起作用。该按钮已经过测试。 –