impress-org / givewp-snippet-library

A collection of code snippets to enhance or expand on the free Give WordPress Donation Plugin.
https://givewp.com
140 stars 90 forks source link

givewp donation form gets submitted even if recaptcha is not validated #131

Closed thesmahesh closed 3 years ago

thesmahesh commented 3 years ago

User Story

Thank you for your effort implementing recaptcha to givewp donation forms. I want the recaptcha to be validated before givewp donation form gets submitted

Details

Implementing this plugin displays recaptcha form before givewp donation form submit button. GREAT. But, donation form gets submitted even if the user does not validate recaptcha

Expected Behavior

If the user does not validate recaptcha, givewp donation form should not get submitted

Steps to Reproduce

  1. Go to givewp donation form
  2. Select donation amount
  3. Enter username, email etc.
  4. Do NOT validate recaptcha and click submit button
  5. Form still gets submitted even without validating recaptcha

Visuals

enclosed givewp donation form screenshot

System Information

GiveWP Version 2.13.4 Wordpress 5.8.1 php 7.3 givewp

thesmahesh commented 3 years ago

recaptcha validation works fine when givewp form display is set to DISPLAY REVEAL But, validation does not work when givewp form display is set to MODAL. May be some css issues with my theme. Thanks for your wonderful plugin. very much appreciated.