【发布时间】: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