Anyone have experience with recaptcha v3 validatio...
# suitescript
k
Anyone have experience with recaptcha v3 validation via server side suitelet?
d
yes
k
Any tips?
d
Copy code
nlapiRequestURL(recaptchaVerifyUrl, {
    remoteip: IP_CLIENT,
    secret: privateKey,
    response: captcha // value in form
});
then to verify
Copy code
response.success;
response.action;
response.score;
check this in response
Copy code
{
  "success": true|false,      // whether this request was a valid reCAPTCHA token for your site
  "score": number             // the score for this request (0.0 - 1.0)
  "action": string            // the action name for this request (important to verify)
  "challenge_ts": timestamp,  // timestamp of the challenge load (ISO format yyyy-MM-dd'T'HH:mm:ssZZ)
  "hostname": string,         // the hostname of the site where the reCAPTCHA was solved
  "error-codes": [...]        // optional
}
k
Thank you Denis!!
👍 1