Enable AJAX redirect for formidable forms
-
I needed a multi-step formidable forms with AJAX enabled, but the pay extension for formidable forms does not handle this at the moment.
I changed the code a bit to support it in file /vendor/wp-pay-extensions/formidable-forms/src/Extension.php:320
if ( defined('DOING_AJAX') && DOING_AJAX ) { echo json_encode( array( 'redirect' => $payment->get_action_url() ) ); wp_die(); } else { // Redirect $gateway->redirect( $payment ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Enable AJAX redirect for formidable forms’ is closed to new replies.