2015-05-01 58 views
1

此腳本的幫助下,我試圖整合支付鏈 https://github.com/paypal/adaptivepayments-sdk-php PHP SDK與貝寶的API AdaptivePayments貝寶API,IPN消息未收到

我還處在起步階段,支付整合鏈接在沙箱中的作品 但我的listnerIPN.php沒有收到任何來自PayPal IPN 的通知,這可能是原因?

這是捲曲請求體則params的打印:

requestEnvelope.errorLanguage = EN_US &操作類型= PAY & cancelUrl = HTTP%3A%2F%2Fshoppaz.com%3A80%2Ftest%2Fadaptivepayments-sdk- PHP-主%2Fsamples%2FPay.php & CURRENCYCODE = EUR & feesPayer = SENDER & ipnNotificationUrl = HTTP%3A%2F%2Fshoppaz.com%2Ftest%2Fadaptivepayments-SDK-PHP-主%2Fsamples%2FIPN%2FIPNListener.php & receiverList。 receiver(0).amount = 1.0 & receiverList.receiver(0).email = biagiopas-business%40yahoo.it & receiverList.receiver(0).primary = false & receiverList.receiver(1).amount = 1.0 & receiverList.receiver(1).email = abiagiopas-business%40yahoo.it & receiverList.receiver(1).primary = false & receiverList.receiver(2).amount = 1.0 & receiverList.receiver(2).email = bbiagiopas業務%40yahoo.it & receiverList.receiver(2).primary =假& reverseAllParallelPaymentsOnError =假& RETURNURL = HTTP%3A% 2F%2Fshoppaz.com%3A80%2Ftest%2Fadaptivepayments-SDK-PHP-主%2Fsamples%2FWebflowReturnPage.php

&ipnNotificationUrl設置

+0

您是否嘗試從[IPN模擬器]提交(https://developer.paypal.com/developer/ipnSimulator) ? – Machavity

回答

2

設置IPN通知PayPal上:

  1. 點擊ProfileMy Account tab

  2. 單擊Selling Preferences列中的Instant Payment Notification Preferences列。

  3. 點擊Choose IPN Settings指定您的監聽器的URL並激活監聽器。出現下面的屏幕:

enter image description here

  • 指定在Notification URL field監聽器的URL。
  • 點擊Receive IPN messages (Enabled)啓用您的聽衆。
  • 點擊Save。出現以下畫面:
  • enter image description here

  • 點擊Back to Profile Summary來激活你的聽衆後回到個人資料。您還可以單擊編輯設置來修改您的通知URL或禁用您的監聽器。您可以點擊關閉IPN來重置您的IPN首選項。

  • 動態設置的通知URL

    您可以指定一個IPN偵聽特定款項;這是接收與自適應付款相關的IPN的唯一方式。在這種情況下,PayPal會將IPN消息發送給通知URL中爲特定按鈕或API操作指定的偵聽器,而不是您的配置文件中指定的偵聽器。

    要指定通知URL對於一/一個:

    1. PayPal付款標準按鈕:

      notify_url HTML形式變量

    2. NVP API操作:
      NOTIFYURLDoDirectPayment的場,DoExpressCheckoutPaymentDoReferenceTransaction請求。

    3. SOAP API操作:

      NotifyURLDoDirectPaymentDoExpressCheckoutPayment字段,或DoReferenceTransaction請求。

    4. 自適應支付API操作:
      ipnNotificationUrlPayPreapproval請求的字段


    來源:

    Identifying Your IPN Listener to PayPal

    +0

    非常歡迎@SimoneBonelli :)如果我的答案對您有幫助,請考慮投票1+並通過點擊投票箭頭中間的複選標記tks接受它作爲正確答案! –