简体   繁体   English

如何检查PayPal订阅尚未取消?

[英]How to check a PayPal subscription has not been cancelled?

I have a chat site and I am going to make it possible for the users to reserve a nickname for a subscription fee per month. 我有一个聊天网站,我将使用户可以每月为订阅费保留一个昵称。 I have been reading up on PayPal documentation and understand how to do such using PHP with the various callbacks from PayPal to check that the initial payment has been confirmed but what I don't understand how to do is how to each month check that the subscription has still been paid/not cancelled, otherwise do something (in this case remove their subscriber account)? 我一直在阅读PayPal文档,并了解如何使用PHP通过PayPal的各种回调来执行此操作,以检查是否已确认初始付款,但是我不明白该怎么做,就是每月检查一下订阅仍已付款/未取消,否则可以执行某些操作(在这种情况下,请删除其订户帐户)?

You can use PayPal IPN feature https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNIntro/?mark=IPN . 您可以使用PayPal IPN功能https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNIntro/?mark=IPN Refer to https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/ , there is a "profile_status" variable , PayPal can notify you if profile status is changed. 请参阅https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/ ,其中有一个“ profile_status”变量,如果个人资料状态发生更改,贝宝可以通知您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM