【问题标题】:Paypal API, IPN message is not receivedPaypal API,未收到 IPN 消息
【发布时间】:2015-07-11 13:46:29
【问题描述】:

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

我还处于起步阶段,支付链在沙盒中有效 但我的 listnerIPN.php 没有收到来自 PayPal IPN 的任何通知 可能是什么原因?

这是 curl 请求正文参数的打印:

requestEnvelope.errorLanguage=en_US&actionType=PAY&cancelUrl=http%3A%2F%2Fshoppaz.com%3A80%2Ftest%2Fadaptivepayments-sdk-php-master%2Fsamples%2FPay.php&currencyCode=EUR&feesPayer=SENDER&ipnNotificationUrl=http%3A%2F%2Fshoppaz .com%2Ftest%2Fadaptivepayments-sdk-php-master%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-business%40yahoo.it&receiverList.receiver(2).primary=false&reverseAllParallelPaymentsOnError=false&returnUrl=http%3A%2F%2Fshoppaz.com%3A80%2Ftest%2Fadaptivepayments-sdk-php-master%2Fsamples%2FWebflowReturnPage .php

&ipnNotificationUrl 已设置

【问题讨论】:

标签: php api paypal paypal-ipn


【解决方案1】:

在 PayPal 上设置 IPN 通知:

  1. 点击My Account tab上的Profile

  2. Selling Preferences 列中单击Instant Payment Notification Preferences

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

  1. Notification URL field 中指定您的听众的URL。
  2. 点击Receive IPN messages (Enabled) 启用您的监听器。
  3. 点击Save。出现以下屏幕:

  1. 单击Back to Profile Summary 以在激活您的监听器后返回配置文件。您还可以单击编辑设置来修改您的通知 URL 或禁用您的侦听器。您可以点击关闭 IPN 以重置您的 IPN 偏好设置。

动态设置通知 URL

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

为 a/an 指定通知 URL:

  1. PayPal 付款标准按钮:

    notify_urlHTML 表单变量

  2. NVP API 操作:
    DoDirectPaymentDoExpressCheckoutPaymentDoReferenceTransaction 请求的NOTIFYURL 字段。

  3. SOAP API 操作:

    DoDirectPaymentDoExpressCheckoutPaymentDoReferenceTransaction 请求的NotifyURL 字段。

  4. 自适应支付 API 操作:
    PayPreapproval 请求的ipnNotificationUrl 字段


来源:

Identifying Your IPN Listener to PayPal

【讨论】:

    猜你喜欢
    • 2015-07-21
    • 2022-11-20
    • 2016-11-30
    • 2016-06-16
    • 2015-07-07
    • 2019-12-01
    • 2014-04-27
    • 2017-08-01
    • 1970-01-01
    相关资源
    最近更新 更多