问题
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