Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jeff Sherk

    (@jsherk)

    Further info…

    Webhooks succeed when I actually make the purchase on woocommerce using the woocommerce stripe gateway.

    However I have other platforms that use Stripe as well and they also use the same hooks as WC Stripe Gateway.

    So the problem is that when the Webhook Signing Secret does not match, WC Stripe Gateway is incorrectly returning a FAILED code, when in reality it should (1) ignore the webhook, and (2) return a SUCCESS code (400).

    If WC Stripe Gateway is the only webhook, then this bug does not show up because it will only be receiving webhooks with the correct signing secret. However add other webhooks to other apps that are also using stripe, and this is a HUGE bug.

    Thread Starter Jeff Sherk

    (@jsherk)

    Okay after further investigation, it has nothing to do with signing secret…

    The problem is TEST MODE.

    When Test Mode is enabled, any webhooks sent from other LIVE apps using Stripe, will FAIL.

    So regardless of whether WC Stripe Gateway is in Live mode or Test mode, it should still return a SUCCESS for any webhooks received.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @jsherk

    Thanks for the update! Just to be clear – are you still experiencing an issue with the WooCommerce Stripe plugin or is this on other platforms where you are using Stripe?

    Thread Starter Jeff Sherk

    (@jsherk)

    Yes there is still issue…

    To recreate you need to do the following…

    Setup both a LIVE webhook and TEST webhook in Stripe that goes to /?wc-api=wc_stripe

    Setup all the credentials in payment settings of wc stripe gateway, for both live and test api keys and the live and test whsec_ signing secrets.

    Put wc stripe gateway in Test Mode Enabled.

    Now when another program/app that is using Stripe (and is LIVE) triggers a webhook, like say charge.succeeded, the wc stripe gateway returns a webhook FAILED.

    The wc stripe gateway webhook needs to return a SUCCESS from both the Live and the Test webhooks, even when its in test mode.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @jsherk

    I see you’ve been in contact with our support team about this via ticket. Based on the information you sent, an Enhancement Request was created in Github here:

    https://github.com/woocommerce/woocommerce-gateway-stripe/issues/1136

    You’re welcome to follow the progress there! I’ll go ahead and mark this post resolved. Please feel free to reach out to us via that support ticket if you have any additional information or questions.

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