Frontend
Script Placement
Ensure that the javascript string provided by the backend is placed on the page to be protected. Place the string in a script tag as early as possible in the <head> section of the page. Doing this gives the script the maximum time to run, reducing false positives.
1 2 3 4 5 6 | |
Warning
Ensure that the script string is unescaped and unencoded when it is placed on the page.
Multiple submissions
Warning
Please ensure that multiple button clicks by the user does not submit the same token multiple times.
If the button being pressed multiple times results in the token being sent to us more than once this will cause false positives. We will block all repeat token submissions to avoid a token being used for multiple transactions.
Checks Completed
It is important that the script has completed its checks before allowing the user to navigate off the page, redirecting the URL or submitting the token for validation. Please add the monitoring snippet below and only allow the user to navigate off the page once !# statusCode === 201, this will help prevent false positives in the datapoint missing category.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
We suggest you do not prevent the user from clicking the button in the event that they click the button before !# statusCode === 201. Instead allow the user to click the button and display a loading icon until !# statusCode === 201.