Paypal API,未收到IPN讯息

时间:2015-05-01 17:23:10

标签: php api paypal paypal-ipn

在这个脚本的帮助下,我正在尝试整合付款链接 https://github.com/paypal/adaptivepayments-sdk-php 用于与PayPal的API AdaptivePayments集成的PHP SDK

我还在开始,在沙箱中链接的付款工作 但是我的listnerIPN.php没有收到来自PayPal IPN的任何通知 这可能是原因?

这是卷曲请求身体参数的打印:

  

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)。电子邮件= biagiopas业务%40yahoo.it&安培; receiverList.receiver(0)= .primary假安培; receiverList.receiver(1).amount = 1.0&安培; receiverList.receiver(1).email = abiagiopas业务%40yahoo.it&安培; receiverList.receiver(1).primary =假安培; 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已设置

1 个答案:

答案 0 :(得分:2)

在PayPal上设置IPN通知:

  1. 点击Profile上的My Account tab

  2. 点击Instant Payment Notification Preferences列中的Selling Preferences

  3. 单击Choose IPN Settings以指定侦听器的URL并激活侦听器。出现以下屏幕:

  4. enter image description here

    1. Notification URL field中指定听众的网址。
    2. 点击Receive IPN messages (Enabled)启用您的听众。
    3. 点击Save。出现以下屏幕:
    4. enter image description here

      1. 点击Back to Profile Summary以在激活收听者后返回个人资料。您还可以单击“编辑设置”以修改通知URL或禁用侦听器。您可以单击“关闭IPN”以重置IPN首选项。
      2. 动态设置通知URL

        您可以为特定付款指定IPN侦听器;这是接收与自适应付款相关联的IPN的唯一方法。在这种情况下,PayPal会将IPN消息发送到通知URL中指定的侦听器,以获取特定按钮或API操作,而不是您的配置文件中指定的侦听器。

        为/ an:

        指定通知URL
        1. PayPal付款标准按钮:

          notify_url HTML表单变量

        2. NVP API操作:
          NOTIFYURLDoDirectPaymentDoExpressCheckoutPayment请求的DoReferenceTransaction字段。

        3. SOAP API操作:

          NotifyURLDoDirectPaymentDoExpressCheckoutPayment请求的

          DoReferenceTransaction字段。

        4. 自适应付款API操作:
          ipnNotificationUrlPay请求

        5. Preapproval字段

          来源:

          Identifying Your IPN Listener to PayPal

相关问题