projectName($project); // Set the properties of the event to be tracked. $event = (new Event()) ->setSiteKey($recaptchaKey) ->setToken($token); // Build the assessment request. $assessment = (new Assessment()) ->setEvent($event); $request = (new CreateAssessmentRequest()) ->setParent($projectName) ->setAssessment($assessment); try { $response = $client->createAssessment($request); // Check if the token is valid. if ($response->getTokenProperties()->getValid() == false) { printf('The CreateAssessment() call failed because the token was invalid for the following reason: '); printf(InvalidReason::name($response->getTokenProperties()->getInvalidReason())); return; } // Check if the expected action was executed. if ($response->getTokenProperties()->getAction() == $action) { // Get the risk score and the reason(s). // For more information on interpreting the assessment, see: // https://cloud.google.com/recaptcha-enterprise/docs/interpret-assessment printf('The score for the protection action is:'); printf($response->getRiskAnalysis()->getScore()); } else { printf('The action attribute in your reCAPTCHA tag does not match the action you are expecting to score'); } } catch (exception $e) { printf('CreateAssessment() call failed with the following error: '); printf($e); } } // TODO: Replace the token and reCAPTCHA action variables before running the sample. create_assessment( '6Le0Hm4rAAAAAHM6czTKydC0c7leAI8zHrU1eUyQ', 'YOUR_USER_RESPONSE_TOKEN', 'dadlore-1750924932747', 'YOUR_RECAPTCHA_ACTION' ); ?>

Membership Information

You have selected the The Listeners | Monthly membership level.

You’ve chosen to listen — not turn away. This level helps amplify the voices of children who’ve suffered in silence. Your membership supports real outreach, real stories, and real healing.

It may seem small, but listening is the first act of rescue.

All payments and how we use your money can be tracked on our website!

The price for membership is $25.00 per Month.

Do you have a discount code?

Account Information

LEAVE THIS BLANK
Already have an account? Log in here

Billing Address

Payment Information

/
A Payment Gateway must be set up before any payments will be processed.