Paypal Javascript Button data-notify-url Instant Payment Notification

大兔子大兔子 提交于 2019-12-11 18:04:49

问题


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')

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

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

IPN Delivery Failed:503 Service Unavailable

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

I used web accept as transaction type.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/18823436/paypal-javascript-button-data-notify-url-instant-payment-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!