You need to call the callback function. You can find it in hcaptcha.render. An example of how to do this is available on the website https://multibot.in in the API documentation.