-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.0 Fraud Prevention Headers released #18
Comments
I've finally had time to dive back into this, plus now with them making the headers mandatory in July. I've finished testing a new version of the library with the new headers. It makes the following changes:
As for the IP addresses, if you're having issues then you may have to populate them manually. As for percent encoding, the library should be encoding everything. If you can give me an example of what's not being encoded that would help. |
Apologies, I got over and discovered that a few headers weren't being percent-encoded, namely:
|
Hi, I am invoking TestFraudPrevention and my reply contains a ValidateErrorWEB saying Server Token cannot be empty - HMRC have confirmed server token was deprecated on 1 September 2020. |
@Farewell-debug I fixed this by changing this line
to
Seems like they added new headers, PublicIpTimestamp Also percent encoding of ref
|
It seems that HMRC have released an updated fraud prevention header specification to make things even more difficult.
https://developer.service.hmrc.gov.uk/guides/fraud-prevention/
I get the odd email from them regarding the FPH and they complain about 2 things. The first is the IP addresses. They say that they are invalid. I keep trying to tell them I have no control over my customer's network infrastructure.
The second thing I get moaned at for is that they say that some of the required FPH values aren't being percent encoded. My biggest issue is that I have found about 5 or 6 different ways to percent encode the data and they're all slightly different. Any thoughts on how you decide which method to use? It isn't like HMRC are giving anything away on the subject.
The text was updated successfully, but these errors were encountered: