However, when I try to add the collected data from the webhook, I only have the following options in the dropdown:
The incoming webhook data is not being processed correctly in the recipe. I cannot change the structure of the webhook data, but I need to manipulate or map it properly in the recipe to ensure the desired actions are performed.
Anyone experiencing this problem?
]]>x-wc-webhook-signature
header it doesn’t match.
Here is part of the code I’m using:
app.post('/webhook', express.raw({ type: 'application/json' }), (request, response) => {
const isWebhookValid = isWoocommerceWebhookValidated(request)
if (isWebhookValid) {
console.log('Webhook signature is valid')
response.status(200).send('Webhook signature is valid')
} else {
console.log('Webhook signature is invalid')
response.status(401).send('Webhook signature is invalid')
}
})
Here is the logic behind the isWoocommerceWebhookValidated
export function isWoocommerceWebhookValidated(request: Request): boolean {
const WC_WEBHOOK_SIGNATURE_HEADER = 'x-wc-webhook-signature'
const signature = request.headers[WC_WEBHOOK_SIGNATURE_HEADER] ?? ''
const secret = process.env.WOOCOMMERCE_WEBHOOK_SECRET ?? ''
if (!signature || !secret) {
console.log('Missing signature or secret')
return false
}
const payload = request.body
const hash = crypto.createHmac('sha256', secret).update(payload, 'utf8').digest('base64')
return hash === signature
}
These are the hash and signature result logged in console:
signature: 'QtVYdnEQDf0+lcxkjGgSXxtuAqkM/3L6GYvhgjY+DEE='
hash: 'LUsjH1Gx2DaSLHIg5NkoTx03mUsHdL7+RlPiIYF6I0c='
I’m 100% sure that both secrets in Woocommerce and in my environment variable matches. Any ideas on how to solve the issue?
I have an issue with WordPress WooCommerce and Stripe pluing
I have followed other threads and I deleted the webhook in my Stripe and reconnected my WooCommerce site to the Stripe account using the new automatic system.
I have ‘Payment: Enabled Payout: Enabled Webhook: Enabled’ but a warning saying:
Warning: The most recent live webhook, received at 2024-09-14 11:03:38 UTC, could not be processed. Reason: The webhook was not signed with the expected signing secret. (The last live webhook to process successfully was timestamped 2024-09-11 17:20:02 UTC.)
Is there any fix for this?
(WooCommerce 9.3.1 with WooCommerce Stripe Gateway 8.6.1.)
I get the error “Looks like the webhook cannot be received. Check that your website is accessible from the internet.” when using the Webhook simulation.
I’ve turned on Logs as well.
Please advise. Thank you.
]]>I am experiencing an issue with integrating data received from a webhook into a WordPress post. Specifically, the text contains double backslashes, such as \\[\\frac{\\partial f}{\\partial x}\\]
, but these backslashes are being treated as regular slashes. As a result, in the WordPress editor, the output appears as rac{artial f}{artial x}
instead of the correct format \[\frac{\partial f}{\partial x}\]
.
I have reviewed the UA logs and confirmed that the data is received correctly (with double backslashes), and the content appears correctly published (with single backslashes). However, when viewing it in the WordPress editor, the backslashes are removed, along with the first letter following each backslash.
Could you please advise if there is a way to resolve this issue? I would greatly appreciate any guidance or assistance you can provide.
Thank you very much for your help!
]]>I use make.com for my automation. Can I trigger username change from there trough WP webhooks.
I can change anything except this with this method.
Any ideas how I can do this?
]]>I use make.com for my automation. Can I trigger username change from there trough WP webhooks.
I can change anything except this with this method.
Any ideas how I can do this?
]]>