简体   繁体   English

使用PayPal订阅按钮,除非取消,重复计费是否会无限期继续?

[英]With PayPal subscribe button, does the recurring billing continue indefinitely unless cancelled?

I have created a Subscribe button using PayPal Standard button html code as below. 我使用贝宝标准按钮html代码创建了一个“ Subscribe按钮,如下所示。 The subscription billing cycle is monthly. 订阅计费周期为每月。 For example, a user signs up for a Silver subscription at $150 per month or a Gold subscription at $200 per month. 例如,用户以每月150美元的价格注册白银订阅,或以每月200美元的价格注册金订阅。

Question : Will the monthly billing amount be automatically charged to the user every month indefinitely till user cancels the subscription, OR there is a maximum number of times it will be automatically charged? 问题 :在用户取消订阅之前,是否会indefinitely每月自动向用户收取每月帐单金额,或者是否有最大次数自动收费?

I could not find any documentation on this, so just wanted to be sure. 我找不到关于此的任何文档,所以只是想确定一下。

Subscribe button code 订阅按钮代码

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="XE3412D6UV2A">
    <input type="hidden" name="return" value="http://localhost/loadsprocure/paymentcompleted.aspx" />
    <input type="hidden" name="custom" value="23V125,new,architect" />
    <table>
        <tr><td><input type="hidden" name="on0" value="Plan Options">Plan Options</td></tr>
        <tr>
            <td>
                <select name="os0">
                    <option value="Basic">Basic : $100.00 USD - monthly</option>
                    <option value="Silver">Silver : $150.00 USD - monthly</option>
                    <option value="Gold">Gold : $200.00 USD - monthly</option>
                </select>
            </td>
        </tr>
    </table>
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.sandbox.paypal.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.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

You can find more details here: https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECRecurringPayments/ 您可以在这里找到更多详细信息: https : //developer.paypal.com/docs/classic/express-checkout/integration-guide/ECRecurringPayments/

In short: 简而言之:

When you support recurring payments for a buyer, you create a recurring payments profile. 当您支持买方的定期付款时,可以创建定期付款资料。 The profile contains information about the recurring payments, including details for an optional trial period and a regular payment period. 该配置文件包含有关定期付款的信息,包括可选试用期和常规付款期的详细信息。 Both periods contain information about the payment frequency and payment amounts, including shipping and tax, if applicable. 两个期间均包含有关付款频率和付款金额的信息,包括运费和税费(如果适用)。

After creating a profile, PayPal automatically queues payments based on the billing start date, billing frequency, and billing amount. 创建配置文件后, 贝宝会根据账单开始日期,账单频率和账单金额自动将付款排队。 Payments reoccur until the profile expires, there are too many failed payments to continue, or you cancel the profile. 重新付款直到配置文件过期,失败的付款太多以致无法继续或您取消了配置文件。

( NOTE : All screen shots of Notifications in this message are from sandbox environment of PayPal and not from live environment) 注意 :此消息中所有通知的屏幕截图均来自PayPal沙盒环境,而非实时环境)

What I found was surprising. 我发现令人惊讶。 Even with a subscription button, you can end up creating a non-recurring payment if you use the code in my original post. 即使使用订阅按钮,如果您使用我原始帖子中的代码,也可能最终创建非定期付款。 But, if I added the code below, then it created a recurring profile Without this extra code, the subscription billing stops after the current payment which you can see from a screen shot of subscription notification at end of this post. 但是,如果我添加了下面的代码,则它创建了一个重复的配置文件。 如果没有此额外的代码,则在当前付款之后,订阅计费就会停止,您可以从本文结尾处的订阅通知屏幕截图中看到。

<input type="hidden" name="src" value="1"><!--creates a recurring payment-->

When I included above code and created a subscription, then I got the following notification which clearly states the next payment date and also mentions no stop date. 当我包含以上代码并创建订阅后,我收到以下通知,该通知明确指出了下一个付款日期,也没有提及停止日期。

Notification for subscription with recurring payment 定期付款订阅通知

订阅按钮可创建定期付款

With the code that I have in my question post, the Subscribe button surprisingly creates a non-recurring billing. 使用我在问题中发布的代码,“ Subscribe按钮令人惊讶地创建了非经常性账单。 How I came to know about this was by looking at Notifications at https://developer.paypal.com/developer/notifications/ . 我是通过查看https://developer.paypal.com/developer/notifications/上的通知来了解这一点的。 Below is a screen shot of the notification for subscription created with original html code. 以下是使用原始html代码创建的订阅通知的屏幕截图。

Notification for subscription with NON-recurring payment 非定期付款订阅通知

订阅按钮创建非经常性付款

The src variable is described in PayPal documemtation at https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/ is as below. src变量在https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/的 PayPal文档中进行了描述。

src variable Documentation from PayPal src变量来自PayPal的文档

PayPal src变量

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

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