在这个脚本的帮助下,我正在尝试整合付款链接 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
已设置
答案 0 :(得分:2)
点击Profile
上的My Account tab
。
点击Instant Payment Notification Preferences
列中的Selling Preferences
。
单击Choose IPN Settings
以指定侦听器的URL并激活侦听器。出现以下屏幕:
Notification URL field
中指定听众的网址。 Receive IPN messages (Enabled)
启用您的听众。 Save
。出现以下屏幕:
Back to Profile Summary
以在激活收听者后返回个人资料。您还可以单击“编辑设置”以修改通知URL或禁用侦听器。您可以单击“关闭IPN”以重置IPN首选项。 您可以为特定付款指定IPN侦听器;这是接收与自适应付款相关联的IPN的唯一方法。在这种情况下,PayPal会将IPN消息发送到通知URL中指定的侦听器,以获取特定按钮或API操作,而不是您的配置文件中指定的侦听器。
为/ an:
指定通知URLPayPal付款标准按钮:
notify_url
HTML表单变量
NVP API操作:
NOTIFYURL
,DoDirectPayment
或DoExpressCheckoutPayment
请求的DoReferenceTransaction
字段。
SOAP API操作:
NotifyURL
,DoDirectPayment
或DoExpressCheckoutPayment
请求的 DoReferenceTransaction
字段。
自适应付款API操作:
ipnNotificationUrl
或Pay
请求
Preapproval
字段
醇>
来源: