• Resolved reason1234

    (@reason1234)


    The plugin works great in that all payments etc work straight out of the box. What I can’t get to work is the webhook – every event delivery fails. Every time it’s the same error:

    403
    Response body
    Invalid encoding: ISO-8859-1

    I have tried:

    – Disabling all plugins except for this Stripe plugin and woocommerce
    – Using default woocommerce storefront theme.
    – Remove webhook and set up manually (after initially using the plugin’s automatic webhook creation method)
    – Roll/change webhook secret & double check it’s correct in both plugin settings and Stripe dashboard
    – Reactivate wordfence security plugin and whitelist stripe webhook IPs
    – Switch to test mode and send test events from Stripe

    Any ideas? I know webhooks aren’t vital for our purpose but we are running subscriptions so concerned we might miss something important without this working.

    Thanks, Rhys

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @reason1234

    What is the webhook url that’s configured in the stripe.com > develerops > webhooks page? It could be related to how your webserver is treating HTTPS.

    but we are running subscriptions so concerned we might miss something important without this working

    Unless you’re using asynchronous payment methods like SEPA, iDEAL etc then the webhooks won’t have any affect on payments.

    Kind Regards

    Thread Starter reason1234

    (@reason1234)

    https://chestercitybaths.com/wp-json/wc-stripe/v1/webhook

    I’ve also just tried setting up the Woocommerce stripe plugin in test mode and getting the same 403 error on the endpoint for that too, so looks like is an issue with with the server settings.

    If anyone has any experience of this and any pointers on how to fix please let me know.

    Thanks, Rhys

    Thread Starter reason1234

    (@reason1234)

    Figured it out finally. I forgot I had set up server security (htaccess rules) to block visitors from countries except UK so this was blocking the webhook deliveries from Stripe’s US IP addresses. As soon as I added US to the allowed list the webhook works.
    This was all happening before wordfence rules so they had no affect on this.
    Simple really!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @reason1234

    Thank you for the update and providing what the resolution was.

    Kind Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Webhook fails delivery every time’ is closed to new replies.