我在PayPal內部設置了一個IPN,每次使用Payflow Pro的定期付款都設置爲通過。我怎樣才能讓它返回自定義ID的變量,我需要確保我可以用來擴展成員資格?Paypal定期付款IPN
到目前爲止,我已經嘗試過ProfileID,payer_business_name,option_name1,rp_invoice_id,發票和自定義,當它通過時沒有發送回。
我在PayPal內部設置了一個IPN,每次使用Payflow Pro的定期付款都設置爲通過。我怎樣才能讓它返回自定義ID的變量,我需要確保我可以用來擴展成員資格?Paypal定期付款IPN
到目前爲止,我已經嘗試過ProfileID,payer_business_name,option_name1,rp_invoice_id,發票和自定義,當它通過時沒有發送回。
如果它包含在POST中,那麼custom
變量肯定會起作用。或者,您可以將任何您喜歡的變量名稱=值對添加到notify_url,只要它們不與PayPal的IPN變量衝突。
rp_invoice_id在recurring_payments_profile_created和常規recurring_payment IPN中均返回。這是兩個例子。
Array
(
[payment_cycle] => Monthly
[txn_type] => recurring_payment_profile_created
[last_name] => Parr
[next_payment_date] => 02:00:00 Jan 02, 2014 PST
[residence_country] => US
[initial_payment_amount] => 0.00
[rp_invoice_id] => 5416
[currency_code] => USD
[time_created] => 11:40:24 Jan 02, 2014 PST
[verify_sign] => A0AUpo6gn8Mp.jtr-HUe-oSqCFb6A0LWR7wKLHmMMUUwszTktyPfL8DU
[period_type] => Regular
[payer_status] => verified
[tax] => 0.00
[payer_email] => [email protected]
[first_name] => Don
[receiver_email] => [email protected]
[payer_id] => F5T99998MN
[product_type] => 1
[payer_business_name] => Testers, LLC
[shipping] => 0.00
[amount_per_cycle] => 1.95
[profile_status] => Active
[charset] => windows-1252
[notify_version] => 3.7
[amount] => 1.95
[outstanding_balance] => 0.00
[recurring_payment_id] => I-WK69LR0DU8DU
[product_name] => USBSwiper Monthly Subscription
[ipn_track_id] => 6ddc294dddb3f
)
Array
(
[mc_gross] => 1.95
[period_type] => Regular
[outstanding_balance] => 0.00
[next_payment_date] => 02:00:00 Feb 02, 2014 PST
[protection_eligibility] => Ineligible
[payment_cycle] => Monthly
[address_status] => confirmed
[tax] => 0.00
[payer_id] => F59999MN
[address_street] => 96 east granada drive
[payment_date] => 11:41:08 Jan 02, 2014 PST
[payment_status] => Completed
[product_name] => USBSwiper Monthly Subscription
[charset] => windows-1252
[rp_invoice_id] => 5416
[recurring_payment_id] => I-WK69LR0DU8DU
[address_zip] => 08723
[first_name] => Blah
[mc_fee] => 0.34
[address_country_code] => US
[address_name] => Testers, LLC
[notify_version] => 3.7
[amount_per_cycle] => 1.95
[payer_status] => verified
[currency_code] => USD
[business] => [email protected]
[address_country] => United States
[address_city] => brick
[verify_sign] => AoumLIHoQx0AdOelHJVEVpKjHTDiArY--xdOStWxP3msX12oC3zHxpWw
[payer_email] => [email protected]
[initial_payment_amount] => 0.00
[profile_status] => Active
[amount] => 1.95
[txn_id] => 5DL77590UR008354X
[payment_type] => instant
[payer_business_name] => Testers, LLC
[last_name] => Blah
[address_state] => NJ
[receiver_email] => [email protected]
[payment_fee] => 0.34
[receiver_id] => M5VRAQYEFCSK6
[txn_type] => recurring_payment
[mc_currency] => USD
[residence_country] => US
[transaction_subject] => USBSwiper Monthly Subscription
[payment_gross] => 1.95
[shipping] => 0.00
[product_type] => 1
[time_created] => 11:40:24 Jan 02, 2014 PST
[ipn_track_id] => 8e2c922895e5c
)
如果你沒有得到在rp_invoice_id您的IPN的話,就必須不包含在您的API請求得到正確。
rp_invoice_id連接到什麼?我發送了ProfileReference和RPINVOICEID,它回來了。 – user2352040
啊,對不起,是的。 API請求中的實際參數是PROFILEREFERENCE。該值將回到IPN作爲rp_invoice_id –
我可以知道如何發送這個PROFILEREFERENCE在其餘的API代碼? – udayatom
這是用於定期支付的,IPN在PayPal內部設置,不能隨時用這個設置,所以URL中的變量將不起作用。 – user2352040
我讀過'notify_url'中的那些URL參數,無論設置在哪裏都會被尊重。你確定這不起作用嗎? – EJP