0

ここで利用可能な 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.

イベントが「サブスクリプション」、「サブスクリプション解除」、またはその他のものであるかどうかをどのように検出しますか?

よろしく
お願いします。

4

1 に答える 1

0

txn_typeリクエストで使用可能なパラメータを使用して、トランザクションのタイプを確認できます。さまざまなタイプについては、PayPalのマニュアルを参照してください。

subscr_signupsubscr_cancelサブスクリプションとサブスクリプション解除を適切に示します。

于 2011-03-12T15:19:15.580 に答える