使用 Paypal IPN 订阅 [英] Subscriptions with Paypal IPN
问题描述
我正在使用 Paypal IPN 向网站添加订阅,效果很好,我可以成功创建新订阅并进行验证.订阅有两周的免费试用期.不幸的是,该指南对订阅状态有些含糊.
I am adding subscriptions to a site using Paypal IPN which works very well, I can successfully create a new subscription and verify it. The subscription has a two week free trial. The guide was unfortunately a little vague on subscription statuses.
目前,用户帐户在收到 subscr_signup 或 subscr_payment 后获得订阅状态,并在收到 subscr_cancel 或 subscr_failed 时删除.我相信这是正确的,但最好确定一下.
At the moment, the users account gets subscribed status once subscr_signup or subscr_payment is received and gets removed when either subscr_cancel or subscr_failed is received. I believe this is correct but it's best to make sure.
还有什么是 subscr_eot?IPN 指南将其描述为订阅期末".试用期结束后会触发吗?
Also what is subscr_eot? the IPN guide describes it as "subscription’s end-of-term." Does this get triggered after the trial period is over?
推荐答案
subscr_eot
在用户的最后一次付费间隔到期时发送.subscr_cancel
在用户取消订阅后立即发送 - 例如:
subscr_eot
is sent when a user's last paid interval has expired. subscr_cancel
is sent as soon as the use cancels the subscription - for example:
用户在第 1 天注册订阅,每月收费一次.subscr_signup
立即发送,subscr_payment
在付款完成后立即发送(通常也是立即发送).
User signs up on day 1 for a subscription which is billed once a month.
subscr_signup
is sent immediately, subscr_payment
is sent as soon as payment goes through (usually immediately as well).
在第 13 天,用户取消了.subscr_cancel
会立即发送,尽管从技术上讲用户已经付款到第 30 天.此时取消由您决定.
On day 13, the user cancels. subscr_cancel
is immediately sent, although the user has technically paid through to day 30. Cancelling at this point is up to you.
在第 30 天,发送 subscr_eot
- 用户已取消,这是他最后一次付款的日期.
On day 30, subscr_eot
is sent - the user has cancelled, and this is the day which his last payment paid until.
试用订阅没有太大变化 - 如果用户在试用订阅结束前取消,subscr_cancel
会立即发送,subscr_eot
会在试用期结束时发送.
Not much changes with trial subscriptions - if a user cancels before a trial subscription is up, subscr_cancel
is sent immediately, and subscr_eot
is sent at the end of the trial.
这篇关于使用 Paypal IPN 订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!