【问题标题】:Few questions about subscriptions关于订阅的几个问题
【发布时间】:2020-12-20 16:04:01
【问题描述】:

我在 PayPal 的论坛中提出了这些问题,但没有收到任何答案。希望我能把它们弄到这里:)

据我所知,如果我想集成订阅,我可以通过 2 种方式实现

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

<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 表单订阅的缺点。

谢谢!

【问题讨论】:

    标签: paypal paypal-subscriptions


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-05-12
      • 2011-08-24
      • 2013-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多