ここで利用可能な Paypal クラスを使用しています: Micah Carrick による
http://www.micahcarrick.com/php-paypal-ipn-integration-class.html
は、IPN と共に Paypal を統合します。
ここで、ユーザーに購読してもらい、購読/購読解除の 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.
イベントが「サブスクリプション」、「サブスクリプション解除」、またはその他のものであるかどうかをどのように検出しますか?
よろしく
お願いします。