我正在使用此处提供的 Paypal 类: Micah Carrick 的
http://www.micahcarrick.com/php-paypal-ipn-integration-class.html
用于将 paypal 与 IPN 集成。
现在,我希望用户订阅并且我想处理订阅/取消订阅 IPN。这是当前代码:
case 'ipn':
if ($p->validate_ipn()) {
// Payment has been recieved and IPN is verified. This is where you
// update your database to activate or process the order, or setup
// the database with the user's order details, email an administrator,
// etc. You can access a slew of information via the ipn_data() array.
我如何检测事件是“订阅”、“取消订阅”还是其他?
提前致谢,
happyhardik