Can you use stripe without AJAX

By: Adem Cifcioglu | Asked: 07/17/2024
ForumsCategory: General questionsCan you use stripe without AJAX
Adem Cifcioglu asked 4 months ago

Hi,
Trying to use stripe to collect payments for a conference we're running, and have realised that ajax validation is forced when using the stripe plugin. This is getting in the way of the way we manage our error messaging, and I've also noticed, that auto-focusing doesn't seem to work, if the first field in error is a set of radio buttons / checkboxes. Instead, focus is lost.

Is it possible to submit without ajax, or if not, is it possible to limit ajax validation to just the strip fields.

If ajax submit must be used for stripe, are there any hooks that I can use the customise things, unless I'm missing it, I can't find any

We normally set up custom error messaging, that has errors listed at the top of the form for our non ajax forms (see ademcifcioglu.com.au/contact/ for an example of how that works). Obviously, ajax gets in the way of this, because it uses the frm_validate_entry filter, which we can't use with ajax.

Note that in the stripe form we've got, we have not enabled stripe link (because that requires ajax submit), I've confirmed we don't have the conversational forms (which also requires ajax), and the submit this form with ajax / validate with JS etc, in settings are all unchecked.

 

Thanks,
Adem

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right