贝宝Javascript按钮data-notify-url即时付款通知 [英] Paypal Javascript Button data-notify-url Instant Payment Notification

查看:95
本文介绍了贝宝Javascript按钮data-notify-url即时付款通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用data-notify-url属性来接收IPN吗?

Can we use data-notify-url attribute to received 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.

The payment was successful but it seems specified notify_url wasn't called.

我也使用了Instant Payment Notification (IPN) simulator并输入了我的notify_url,但是遇到了以下错误:

I also used Instant Payment Notification (IPN) simulator and enter my notify_url but encountered the error below:

IPN Delivery Failed:503 Service Unavailable

但是查看我的应用程序日志,我可以看到notify_url被调用.

But looking at the logs of my application, I can see the notify_url was called.

我使用web accept作为交易类型.

推荐答案

这看起来像您的Backend-Script(可能是PHP或其他任何东西)当前不可用. 可能由于服务器过载而发生.

This just looks like your Backend-Script (may it be PHP or anything else) is currently not available. It can happen due to a server overload.

503是一个HTTP错误代码,因此与PayPal无关. PayPal尝试将IPN发送给您,并且您的网络服务器以503错误作为响应.

The 503 is a HTTP-ErrorCode so it has nothing to do with PayPal. PayPal tries to send the IPN to you and your web-server responds with a 503 error.

这篇关于贝宝Javascript按钮data-notify-url即时付款通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆