2014-09-25 38 views
0

這裏是例如PayPal快速結帳定期付款IPN請求:定期付款IPN要求rp_invoice_id場

[mc_gross] => 6.56 
    [period_type] => Regular 
    [outstanding_balance] => 0.00 
    [next_payment_date] => 03:00:00 Jun 21, 2012 PDT 
    [protection_eligibility] => Ineligible 
    [payment_cycle] => Weekly 
    [tax] => 0.00 
    [payer_id] => K48P3Fxxxx 
    [payment_date] => 16:52:28 Jun 14, 2012 PDT 
    [payment_status] => Completed 
    [product_name] => Virtual Subscription $6.56/week for 3 weeks 
    [charset] => windows-1252 
    [rp_invoice_id] => 208 
    [recurring_payment_id] => I-4DHKxxxx 
    [first_name] => Test 
    [mc_fee] => 0.38 
    [notify_version] => 3.4 
    [amount_per_cycle] => 6.56 
    [payer_status] => verified 
    [currency_code] => USD 
    [business] => [email protected] 
    [verify_sign] => AlAlnsACWRTf4OV6vRMZG4sCyEdYACBnr7ishagKt60BxtlJgPjaRIAh 
    [payer_email] => [email protected] 
    [initial_payment_amount] => 0.00 
    [profile_status] => Active 
    [amount] => 6.56 
    [txn_id] => 3PE0612xxxx 
    [payment_type] => instant 
    [last_name] => User 
    [receiver_email] => [email protected] 
    [payment_fee] => 0.38 
    [receiver_id] => TYDEKWLxxxx 
    [txn_type] => recurring_payment 
    [mc_currency] => USD 
    [residence_country] => US 
    [test_ipn] => 1 
    [transaction_subject] => Virtual Subscription $6.56/week for 3 weeks 
    [payment_gross] => 6.56 
    [shipping] => 0.00 
    [product_type] => 1 
    [time_created] => 23:48:22 Jun 13, 2012 PDT 
    [ipn_track_id] => b2c853ddxxxx 

正如你所看到的,有現場叫rp_invoice_id這是的商家自己的唯一的參考或發票號,它可以用來唯一標識一個配置文件。

當創建API調用CreateRecurringPaymentsProfile時,如何傳遞此值,我應該在API調用中設置哪個字段?

謝謝

回答

0

它不會像這樣工作,更新版本的API使用REST調用。

爲了使這項工作,你必須先下載貝寶SDK。它可在http://paypal.github.io/sdk/

請確保您使用正式版本的SDK,可能有機會,您可能會使用不同的版本,並有人可能會坐在那裏竊取您的寶貴信息。我的建議是在開始工作之前先閱讀原始文檔,以便有一個想法。

一旦你安裝了SDK,那麼你可以使用下面

https://devtools-paypal.com/guide/recurring_payment_cc/php?interactive=ON&env=sandbox

這在鏈接中給出的例子會使API調用。

您也可以與現有完整的文檔嘗試https://developer.paypal.com/webapps/developer/docs/api/

編碼快樂! Atul Jindal

+0

不知道我理解你的答案?調用NVP API無法正常工作的特定原因? – MrD 2014-09-25 11:34:50

+0

它會工作得很好。這是不正確的信息。我會盡快發佈答案。 – 2014-09-25 12:23:36