How to use reCaptcha

Let’s suppose I have a button that does something when I click it

$w("#MyButton").onClick((event) => {
        functionAfterCaptcha()
})

How would I make it so that after clicking the button, the user automatically has to solve a reCaptcha before the function activates instead?
I tried taking a look at authorize - Velo API Reference - Wix.com but I don’t really understand if I’m even in the right place.
Can someone help me or direct me to some tutorials or documentations that could help me achieve this?
Thanks.

https://support.wix.com/en/article/velo-tutorial-using-recaptcha-to-protect-data-submission