使用Paypal IPN进行订阅 [英] Subscriptions with Paypal IPN

查看:99
本文介绍了使用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天,用户取消.尽管用户在技术上已经支付了第30天的费用,但subscr_cancel会立即发送.此时,您可以取消操作.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆