We are using PHP Web application to submit HMRC Fraud Prevention Headers in the MTD VAT via CURL.
Now in order to get the production credentials, they wanted to do a fraud testing so we are sending headers but unfortunately they are not accepting these three header values Gov-Vendor-Version, Gov-Client-Public-Port, Gov-Client-Public-IP, and the values are given below.
Gov-Client-Public-Port : 12345,
Gov-Vendor-Public-IP: 123.456.78.9,
Gov-Vendor-Version: amc=v7.1
Note: Above is the dummy ip
When we ask for more information about these headers, we have received the below response from HMRC.
Gov-Vendor-Version: For a client server architecture normally we would expect two versions- one for client and another for server applications, unless they are both part of the same artefact/deployment. Could you confirm if that is the case or if not please provide value as described here
Gov-Client-Public-Port: The requirement is for you to submit the details of the port that the client opened to receive the response from the server. This would be a random port number such as 40756 and may be different with each request made by the client. This port number is normally observed at the server end - at the Web Application Firewall, Load Balancer or Reverse Proxy if these are implemented, or at the backend server process itself. It may be necessary to configure the proxy protocol or similar at the Web Application Firewall, Load Balancer or Reverse Proxy, if one is involved, in order that details of the port are passed on to the backend server process. It should, therefore, be possible for you to collect a value and submit it in the Gov-Client-Public-Port header.
Gov-Client-Public-IP: The requirement is for you to submit the public IP address that the client request to the backend server originated from. Again this is best observed at the server end - at the Web Application Firewall, Load Balancer, Reverse Proxy if these are implemented, or at the backend server process itself.
Unfortunately, as its slightly perplexed we are unable proceed further.