我们可以使用 data-notify-url
属性来接收 IPN 吗?
script(src='paypal-button.min.js?merchant=username@email.com', data-button='buynow', data-name='My product', data-amount='1.00', data-env='sandbox', data-notify_url='http://example.com/ipn')
支付成功但似乎没有调用指定的notify_url。
我还使用了 Instant Payment Notification (IPN) 模拟器
并输入了我的 notify_url
但遇到了以下错误:
IPN Delivery Failed:503 Service Unavailable
但查看我的应用程序日志,我可以看到调用了 notify_url
。
我使用 web accept
作为交易类型。
最佳答案
这看起来您的后端脚本(可能是 PHP 或其他任何东西)当前不可用。 这可能是由于服务器过载造成的。
503 是一个 HTTP-ErrorCode,因此它与 PayPal 无关。 PayPal 尝试将 IPN 发送给您,您的网络服务器以 503 错误响应。
关于Paypal Javascript 按钮 data-notify-url 即时付款通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18823436/