Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Thanks for the review. ??

    Which Stripe plugin are you referring to exactly? This should work if you are using Stripe on WooCommerce checkout (and have that enabled in the settings).

    Thread Starter therinjfoundation

    (@therinjfoundation)

    Have tried most of them.

    I did try putting the scrip call in the head
    <script src=”https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback&#8221; async defer></script>

    And

    <div class=”cf-turnstile” data-sitekey=”site_key” data-callback=”javascriptCallback”></div> Just above the <p class=”wp-submit”><input

    But it does not work.

    WP STripe DOnation AidWP is the latest

    Thanks for your response Elliot Sowersby.
    Great plugin. Good work.

    Thread Starter therinjfoundation

    (@therinjfoundation)

    You can see it here, Elliot
    https://rinj.org/donation/

    This is lessa bout your plugin because it was a stab at helpingthe plugin work in otehr forms. ;o)

    AS you will see, it delivers a graphic but does not opaque the submit button. I tried everything.

    The goal is to prevent card testing by bots

    Plugin Author Elliot Sowersby

    (@elliotvs)

    Hi,

    To get it to work with the custom plugin you would also need to add code to the validation function on the plugin.

    Technically if you have some code knowledge, you would be able to implement it onto any custom form. Just check out the code for one of the existing integrations and you’ll see what’s needed.

    The [simple-turnstile] shortcode will show the widget in your form, then in your forms validation hook, just check the response with:

    $check = cfturnstile_check();
    $success = $check['success'];
    if($success != true) {
        // Code for error notice + stop submission
    }

    The scripts should be loaded automatically on the page for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Great. Please Expand’ is closed to new replies.