Hi,
I saw one weird issue today in Google reCaptcha service. Suddenly reCaptcha stopped working a few days back. While analyzing it is found that request parameters sent through RestClient were working fine, but if used same via code then it was throwing the error for the last parameter used.
Ex- If request parameter is &response=xxxx&secret=xxxx then invalid-input-secret error is thrown. And if the sequence is reverted then invalid-input-response error is thrown.
To resolve this issue, I had to add ampersand at the end of parameters like - &response=xxxx&secret=xxxx&. Also, it was observed that ampersand is required at both the end otherwise service doesn't work.
I am using Salesforce Commerce Cloud platform to integrate it. Not sure if the issue is in Google reCaptcha service or SFCC platform. Let me know if anyone else has got the same issue and resolved in the same way while using any other platform.
Thanks!
Akash Nivja