• 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)
  • Plugin Author Reüel

    (@pronamic_reuel)

    I’ve tested this and we’ll include something similar in a future release, so all users will benefit. Thanks for sharing, Pepijn!

    Thread Starter Pepijn van Vlaanderen

    (@peppol)

    In which release do you expect this enhancement?
    The last two releases I had to fix it manually again.

    Plugin Author Reüel

    (@pronamic_reuel)

    Yikes, should have been included in the v5.6 release but unfortunately that didn’t happen. Will be included in v5.7 for sure. Sorry!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Enable AJAX redirect for formidable forms’ is closed to new replies.