gpt4 book ai didi

php - Paypal API,未收到 IPN 消息

转载 作者:太空宇宙 更新时间:2023-11-03 15:53:16 25 4
gpt4 key购买 nike

在这个脚本的帮助下,我正在尝试集成链式支付 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 已设置

最佳答案

在 PayPal 上设置 IPN 通知:

  1. 单击我的帐户选项卡 上的个人资料

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

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

enter image description here

  1. 通知 URL 字段中指定您的监听器的 URL。
  2. 单击Receive IPN messages (Enabled) 以启用您的监听器。
  3. 单击保存。出现以下屏幕:

enter image description here

  1. 单击返回配置文件摘要 以在激活您的监听器后返回到配置文件。您还可以单击“编辑设置”来修改您的通知 URL 或禁用您的监听器。您可以点击关闭 IPN 来重置您的 IPN 首选项。

动态设置通知 URL

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

为 a/an 指定通知 URL:

  1. PayPal 支付标准按钮:

    notify_url HTML 表单变量

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

  3. SOAP API 操作:

    DoDirectPaymentDoExpressCheckoutPaymentDoReferenceTransaction 请求的

    NotifyURL 字段。

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


来源:

Identifying Your IPN Listener to PayPal

关于php - Paypal API,未收到 IPN 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29991761/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com