I am integrating the WorldPay hosted payment pages gateway to my WordPress installation and I am setting a notification URL in WorldPay to a route within WordPress.
The problem I am having is that WordPress automatically responds with a 404 error if you pass it a parameter called ‘name’, or any other reserved term as defined here: WordPress reserved Terms as WorldPay does.
I was wondering whether it is possible to change this default 404 response, I have tried using
unset($_POST['name']) within my plugin code, but I assume that this is too late within the request lifecycle as it didn’t alter the response. I would also prefer not to set my callback url to another script, which would then alter the $_POST array and pass it on to my plugin, if anyone can suggest a way I can achieve a 200 response without doing this?
edit: My question in a much easier to read format
Remote service X is sending a callback to my WordPress site of example.com/?name=nameofaccount how do you handle that when WordPress uses name as a reserved term and the remote service wont change?