• Resolved poemaxx

    (@poemaxx)


    Hi,

    I’m having problems with webhooks not validating. I filled in the Signing Secret box, and pressed Save Changes. Now both boxes are greyed out and there’s a message saying Webhooks not validated yet.

    I’m on WordPress 6.1.1 running the Vantage theme, Events Calendar 6.0.9 and Event Tickets 5.5.7.

    Test mode is not enabled, and I’ve reverted to PHP7.4. The Stripe account was created specifically to use with Event Tickets, so there is no other platform to interfere with it. I’m using pretty permalinks and flushed them.

    I also went into troubleshooting mode and just enabled Event Tickets, but still no luck.

    Can you offer any advice? Thanks.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Erica

    (@eeide)

    Hi @poemaxx,

    I’m sorry to hear you’re encountering an issue validating the webhook!

    Please add the below snippet to your wp-config.php to manually define the signing secret:

    define( 'TEC_TC_STRIPE_SIGNING_SECRET', 'paste the signing secret starting with whsec_ here' );

    The validation won’t show under Tickets > Settings > Payments > Stripe, but this will connect your site with Stripe after the previous steps in our Knowledgebase article, Setting Up Webhooks for Stripe and Tickets Commerce have been taken.

    Let us know how it goes!

    Thank you,
    Erica

    Thread Starter poemaxx

    (@poemaxx)

    It worked! Thank you very much Erica.

    I am having the same issue as described above. Is there any plan to update the plugins to be compatible with PHP 8.0? Reverting back to 7.4 presents a security issue. Will the same above code work for me on my site? Thanks!

    Hi there,

    I’m having the same issue on a site hosted on wordpress.com, which means I cannot edit the wp-config.php file.

    Any other known workaround?

    I see in the JS console the following error:
    On admin page load:

    caught SyntaxError: Unexpected token 'export' (at ky.min.js?ver=5.0.15:8:207)
    tec-ky.js?ver=5.0.15:1 Uncaught SyntaxError: Cannot use import statement outside a module (at tec-ky.js?ver=5.0.15:1:1)

    On click of the “save” button:

    caught (in promise) TypeError: Cannot read properties of undefined (reading 'post') at obj.initiateValidation (webhooks.min.js?ver=5.5.10:11:1307) at obj.onSigningFieldChange (webhooks.min.js?ver=5.5.10:11:2149) at HTMLInputElement.dispatch (jquery.min.js:2:43184) at y.handle (jquery.min.js:2:41168) o

    I tried following the steps here (https://www.ads-software.com/support/topic/changing-signing-secret-for-stripe-fails-silently-fix/) but no luck.

    Also, I’m using Divi as a theme, which is one of the most popular themes out there, so I’m out of ideas.

    Considering there has been no follow-up on this, I had to create a normally unnecessary dummy plugin helping those not able to access wp-config.php (like anyone using wordpress.com) to implement the workaround.

    Not being an expert wordpress developer, I’m not sure the way I do it is “safe”, but if it can help someone out there, here you go:

    https://github.com/adrienthiery/events-tickets-stripe-secret-validation-fixer/tree/main

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Webhooks not validating’ is closed to new replies.