GravityKit / gravity-forms-zero-spam

Enhance your Gravity Forms to include anti-spam measures without needing to use a CAPTCHA.
https://wordpress.org/plugins/gravity-forms-zero-spam/
GNU General Public License v2.0
4 stars 3 forks source link

Possible conflict with the Stripe add-on #22

Closed bennemann closed 11 months ago

bennemann commented 1 year ago

Report from a user:

With the recent update to Gravity Forms Stripe add-on 5.1.0, we ran into an issue.

Once enabling the Alternate Payment Methods (for Apple/Google Pay, etc). Entries were getting flagged as spam, yet they were getting charged, but the entry process was not completed to provide updated data for the entry, such as the payment ID, process Mailchimp, and Zapier feeds, or send the notification emails to the customer and us.

When disabling your plugin, everything works fine (except now we are getting spam submissions on our non-payment forms).

I've been working with the GF support team on issues around Stripe 5.0 and 5.1, and when I reported this information to them, they suggested that I submit this information to you to investigate a potential conflict between the Stripe 5.1.0 add-on and Gravity Forms Zero Spam.

zackkatz commented 1 year ago

FreeScout #71168.
https://support.gravitykit.com/conversation/71168?folder_id=4

malayladu commented 1 year ago

@bennemann I attempted to replicate the problem using Gravity Forms Stripe add-on versions 5.0.0, 5.1.0, and 5.2.1. In all these versions, the entry was incorrectly tagged as spam by Gravity Forms Zero Spam 1.4, regardless of the Enable additional payment methods setting.

Have you managed to reproduce this issue in the same scenario as the customer mentioned? If you have, could you please create a video recording and share it? This would be greatly helpful for me to gain a better understanding of the issue and attempt to replicate it in my local environment.

zackkatz commented 1 year ago

@malayladu Please fix the issue based on your testing. We can't assume that the customer's report is correctly identifying the problem.

malayladu commented 12 months ago

@zack, I'm sorry for any confusion.

I encountered a problem because I was using a development version of the plugin. It didn't initiate the build process, which resulted in some minified JavaScript and CSS files being missing, causing the issue.

I conducted a test with the official GravityFormsStripe 5.2.1 release, and it worked as expected.

To better assist the customer, we should gather more information about the specific scenario.

@bennemann, if you could provide additional details about the issue or the URL where the form is embedded, it would be greatly appreciated.

malayladu commented 12 months ago

We incorporate the hidden field gf_zero_spam_key through JavaScript during form submission. Consequently, if any JavaScript error occurs prior to this code, it can prevent the addition of the hidden field and potentially lead to spam entries.

bennemann commented 12 months ago

bennemann, if you could provide additional details about the issue or the URL where the form is embedded, it would be greatly appreciated.

@malayladu Unfortunately, that ticket is from many months ago and we don't have access to the customer's website or any additional information besides that user report.

At the time, @zackkatz mentioned that Zero Spam seemed to have a conflict with GF 2.7.

Additionally, Gravity Forms had released improved honeypot functionality, so we were suggesting using that when Zero Spam wasn't working well for the user.

malayladu commented 12 months ago

@bennemann Ok. Got it.

Have you managed to reproduce this issue in the same scenario as the customer mentioned?

??

By any chance can we get the admin access from the customer to debug this issue on their website?

malayladu commented 12 months ago

Update

As per discussion with @bennemann on slack, he will contact the customer and try to get the admin access from the customer. Once we get the admin access, I will resume the work on this issue.

https://gravitykit.slack.com/archives/C727B06MB/p1698399217732919

malayladu commented 11 months ago

Update

It seems there is an error on user’s registration page and I suspect (I mentioned here) that’s the reason it’s creating an issue with the Zero Spam plugin.

Screenshot 2023-10-31 at 9 22 47 PM

Screenshot 2023-10-31 at 9 22 37 PM

zackkatz commented 11 months ago

Okay, how can we make sure that JS errors don't affect Zero Spam?

malayladu commented 11 months ago

@zack We are adding gf_zero_spam_key using Javascript on clicking of Submit button. We may need to change this approach and use available Gravity Forms' action / filter to add that key.

zackkatz commented 11 months ago

The way the functionality works is by using JavaScript to insert the key on-submit.

Does it work when using Gravity Forms JavaScript hooks? https://docs.gravityforms.com/category/developers/hooks/javascript/