2017-05-17 75 views
0

我已經簽署了自己的訂閱,並且收到了來自paypal的這些消息。我顯示了txn_type和subscr_date。的txn_type subsrc_paymentPapPal在定期處理訂閱付款時發送哪些變量

| txn_type |  subscr_date  | 
| subscr_payment | NULL      | 
| subscr_signup | 05:04:37 May 15, 2017 PDT | 
| subscr_cancel | 05:05:57 May 15, 2017 PDT | 

消息只有subscr_id而已。

我感興趣的是什麼信息會在定期付款得到下個月執行,明年送...

我懷疑會有隻是

| txn_type |  subscr_date  | subscr_id 
| subscr_payment | NULL      | SOME ID HERE 

任何人都可以什麼樣的txn_type會被髮送過來?我很難模擬這個過程。

回答

0

當付款發生時,subscr_payment是您將獲得的IPN類型。不知道爲什麼你說你只看到最小的參數。以下是subscr_payment IPN的示例:

Array 
(
    [mc_gross] => 5.00 
    [protection_eligibility] => Eligible 
    [address_status] => unconfirmed 
    [payer_id] => 8FXTJQD6PGD5N 
    [address_street] => 123 Test Ave. 
    [payment_date] => 22:30:42 Jan 04, 2017 PST 
    [payment_status] => Completed 
    [charset] => windows-1252 
    [address_zip] => 11000 
    [first_name] => Tester 
    [mc_fee] => 0.50 
    [address_country_code] => MA 
    [address_name] => HAMMA Omar 
    [notify_version] => 3.8 
    [subscr_id] => I-WCECH3SA87PT 
    [payer_status] => unverified 
    [business] => [email protected] 
    [address_country] => Morocco 
    [address_city] => Rabat 
    [verify_sign] => A3Y1IabViDnLM.hMAUvK-kr83JP5AaoMlP3UYuHFIfHdL4P5lBuXYBoQ 
    [payer_email] => [email protected] 
    [txn_id] => 0RF86855U2529745U 
    [payment_type] => instant 
    [payer_business_name] => Testerson Tester 
    [last_name] => Testerson 
    [address_state] => Rabat 
    [receiver_email] => [email protected] 
    [payment_fee] => 0.50 
    [receiver_id] => G3LWKY98MHFFC 
    [txn_type] => subscr_payment 
    [item_name] => Times News 
    [mc_currency] => USD 
    [residence_country] => MA 
    [test_ipn] => 1 
    [transaction_subject] => Times News 
    [payment_gross] => 5.00 
    [ipn_track_id] => d95263f949f25 
    [ipn_url_name] => AE Sandbox 
)