简体   繁体   English

处理数据库连接错误时的PayPal IPN

[英]Handling PayPal IPN on database connection error

I'm having issues with PayPal IPN marking some payments as sent (HTTP 200 OK) even when MySQL Connection to the database is failing. PayPal IPN将某些付款标记为已发送(HTTP 200 OK)时出现问题,即使与数据库的MySQL连接失败也是如此。 How would I fix this - could I return maybe a 403 or something instead so PayPal will retry it? 我该如何解决-我可以传回403或其他内容,这样PayPal会重试吗?

It does appear that PayPal uses the 200 return code to confirm successful receipt, and will try again if this is not satisfied. 贝宝(PayPal)确实使用200返回码来确认收款成功,如果不满意,将再次尝试。

If your server fails to respond with a successful HTTP response (200), PayPal will resend this IPN either until a success is received or up to 16 times. 如果您的服务器无法通过成功的HTTP响应(200)进行响应,则PayPal将重新发送该IPN,直到收到成功或最多16次。

Source: https://developer.paypal.com/docs/classic/products/instant-payment-notification/ 资料来源: https : //developer.paypal.com/docs/classic/products/instant-payment-notification/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM