Hi currently i have implemented recaptcha v2 in my php website and everything is working fine. I have added 2 text box where I can insert site key and secret key. But the problem is even the keys are wrong still recaptcha is showing and for wrong keys recaptcha v2 always fail.
So I want to know, how can I verify site key and secret key of a website is correct or not via code ?
Also is there any way I can know the recaptcha is working or not via code ?
I have read this documentation but there is no ReCaptchaResponse for site key and secret key is wrong .
Example of wrong keys
Actual keys
Site Key: 7LeAbKcdAAAAAOezcfoFK-tekV_H2V0IzTy5rUn-
secret Key: 7LeAbKcdAAAAAMfyCxR7teg5VzB1Am5Q1jk_I6Tb
Wrong keys
Site Key: 7LeAbKcdAAAAAOezcfoFK-tekV_H2V0IzTy5rUn-
secret Key: 7LeAbKcdAAAAAMfyCxR7teg5VzB1Am6Q1jk_I6Tb
Here in wrong keys, i just changed one number but still the recaptcha keep showing . Actually if the site key and secret key is wrong then it should not display.
I have seen this link and it is very helpful. But for my case even if both site key and secret key is correct i am getting ERROR for site owner: Invalid domain for site key
Please help to find a solution.