paypal - 使用 PayPal HTML 变量在试用期内设置计费频率

标签 paypal

我想以一定的计费频率 ( HTML Variables for Recurring Payments Buttons ) 实现具有试用期的经常性付款

示例:试用期为三个月,每月收取一定的费用。这可能吗?

试用期有三个变量:

a1:试用期价格

p1:试用期持续时间

t1:试用期持续时间单位

如果我将持续时间设置为 3,将单位设置为 M(月),并将价格设置为 100 美元,则 PayPal 会收取 3 个月的价格总额。但我需要经常性收费频率为 1 个月。所以我需要 PayPal 在前三个月(试用期)每月向客户收取 100 美元。如何使用 PayPal 的经常性支付变量实现这一目标?

最佳答案

您可以提供的最接近的是两个试用期。订阅按钮不允许三个试用期。

这是因为如果您将第一次试用期设置为 3 个月,那么您的客户将只需支付 100.00 美元一次,然后三个月后试用期结束。当它到期时,常规订阅值开始。

在第二个试用期中,您可以指定两个月,费用为 200.00 美元,但您的客户最初需要支付 200.00 美元,之后两个月不再收费。

您可以提供为期一个月的初始试用期,您的客户为第一次试用支付 100.00 美元,然后为第二次试用支付 200.00 美元。

提供第二个试用期最接近他们最初每月收取 100.00 美元的费用。
这是 sample code从 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="alice@mystore.com">

<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">

<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Monthly Digest">
<input type="hidden" name="item_number" value="DIG Monthly">

<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="100.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">

<!-- Set the terms of the 2nd trial period. Below is for a 2 month period  -->
<input type="hidden" name="a2" value="200.00">
<input type="hidden" name="p2" value="2">
<input type="hidden" name="t2" value="M">

<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="250.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">

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

<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>

如果您想了解有关设置两个试用期的更多信息,请参阅文档:
Setting Trial Periods

关于paypal - 使用 PayPal HTML 变量在试用期内设置计费频率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32168420/

相关文章:

e-commerce - 购买/出售网站的 Paypal

php - PayPal nvp SetExpressCheckout 在本地开发机器上失败

Paypal 链式支付计算

paypal - 如何检索 PayPalTransactionDidSucceedNotification 的通知对象

ruby-on-rails - 使用 activemerchant 和 ipn 的 Paypal 快速结帐

Paypal 付款选项

paypal - 付款协议(protocol)说明未在 Paypal 沙盒结帐页面中显示全文

Android:添加支付宝支付

java - 在 PayPal SDK (Java) 中执行批准的付款时从哪里获取 payerId

rest - 在 PHP 中实现 PayPal 的 REST API SDK 时出现服务器 500 错误