关于订阅的几个问题

问题描述

我在贝宝(PayPal)的论坛中问了这些问题,但没有收到任何答案。希望我能在这里找到它们:)

据我了解,如果我想集成订阅,我可以通过两种方式实现

一个是使用表单来集成订阅按钮,如下所示:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="businessEmail">

<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">

<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="currency_code" value="USD">
<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="notify_url" value="notify url">

<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">

<!-- display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif"
alt="Subscribe">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

我想这种方法弊大于利,它使我可以创建订阅而无需创建订阅的产品和计划。 但是,另一方面,以这种方式创建订阅用户不能更改订阅,只能取消吗?此外,例如,如果我更改网站,就不能更改“ notify_url”吗?

创建订阅的第二种方法是使用订阅API。据我了解,创建产品和计划可以为我们提供更多控制权,并消除了HTML表单订阅的弊端。

谢谢!

解决方法

您所说的一切都是正确的,我唯一要补充的是,还有一个生成器,可用于以下位置的旧HTML“订阅”按钮和新的JS“ PayPal订阅”按钮:https://www.paypal.com/buttons

如果您希望旧的生成器创建可编辑的代码,则应取消选中“第2步”选项以将按钮保存在PayPal,然后在生成按钮后单击上面的链接以删除代码保护。