PayPal IPN empty array

爱⌒轻易说出口 提交于 2020-01-06 17:55:28

问题


I have development site on localhost, Sandbox set IPN return url to external IP, in form set return and notify url to localhost/...

After submission and succesfull payment script is going back to my notify url but $_POST array is empty

Please help.


回答1:


You should add a new input field,//it will turn on paypal return method to "POST"

<input type="text" name="rm" value="2">

('rm','2'); //return method is POST
rm = how you need the data submitted from PayPal to your IPN script (1=get, 2=post)




回答2:


OK I've managed to find an issue, now Paypal sents response behind the script so i have to log it into the file and see what happened or send it to the email.



来源:https://stackoverflow.com/questions/3708646/paypal-ipn-empty-array

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