简体   繁体   English

如何整合Paypal IPN争议通知

[英]How to integrate paypal IPN dispute notifacation

So I recently got my IPN setup which handles my payments the way I want them to, but how do I check if a user has disputed the payment? 因此,我最近获得了IPN设置,该设置可以按我希望的方式处理我的付款,但是如何检查用户是否对付款提出异议? I'm new to IPNs so do I need to integrate some sort of new code INTO the same ipn.php such as if (preg_match('/Completed/', $payment_status)) { should I have like if (preg_match('/Disputed/', $payment_status)) { or something, I how would I do this? 我是IPN的新手,是否需要将某种新代码集成到同一ipn.php中,例如if (preg_match('/Completed/', $payment_status)) {我应该喜欢if (preg_match('/Disputed/', $payment_status)) {或其他原因,我将如何处理?

For disputes you will get an IPN with a txn_type of "new_case". 如有争议,您将获得一个txn_type为“ new_case”的IPN。 Within your code you can add logic to check for this and react accordingly. 在您的代码中,您可以添加逻辑来检查并做出相应的反应。

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

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