Can you expand on how you have setup the webhooks? Also can you check the woocommerce logs at
/wp-admin/admin.php?page=wc-status&tab=logs
Go to the dropdown and check stripe related logs. Can you see anything wrong there?
We see several errors related to validation such as
2020-11-11T03:04:57+00:00 DEBUG
====Stripe Version: 4.5.3====
====Start Log====
Incoming webhook failed validation: {
“id”: “evt_1Hm6…………..a”,
Hi thanks for getting back to me.
So we installed stripe payment gateway on the test domain and ran test transactions. We moved to the live site on Friday and checked the payment gateway settings which now show:
“You must add the following webhook endpoint https://mcarthuronline.com/?wc-api=wc_stripe to your Stripe account settings. This will enable you to receive notifications on the charge statuses.”
So we set up this endpoint in Stripe.
Checked the logs as you suggested and the failed call to the endpoints are all showing. Not sure what the logs mean – the relevant bit seems to be:
“livemode”: true,
“pending_webhooks”: 1,
“request”: {
“id”: null,
“idempotency_key”: null
My best guess that this is something to do with setting up the plugin originally on the test domain and then moving the site to the live domain – maybe we need to somehow validate the live domain? Can’t find anything in the documentation on Stripe or plugin that refers to this.
Again any help would be appreciated!
Just to amplify the above, the Stripe documentation talks about setting up an Endpoint and gives some example code to do so (just looked again at it and I wouldn’t know how to do this).
We just assumed that installing the plugin would generate the Endpoint automatically on the address referenced above – as the instructions imply that we just need to copy that address over to the Stripe Settings.
hi Nextnorth,
Just so you know I am not a developer of the plugin nor provide support on their behalf. I am just writing out of interest. I have years of experience and also facing similar problems.
Can you check again that you have deployed the right webhook secret and run a webhook test from the Stripe dashboard? I had the wrong webhook secret configured and now I can see it working once i place the right value (this is called the signing secret in the dashboard of stripe)
-
This reply was modified 5 years, 7 months ago by
bizmatebiz.
Wow that worked!
Thanks so much. The webhook secret must have changed when we moved the site onto the live domain.
Didn’t think to reload this!
Many thanks for your help.
Secrets are indeed specific for each webhook . You will have a different secret for each webhook that you add on the Stripe configuration.
Glad I could help