How to use the Google ReCaptcha v2 plugin with the form submission?

I want to understand how to use the Google ReCaptcha v2 plugin with the form submission?

Currently the form submission gives an error “Invalid ReCaptcha. Please try again.”