Webhook generates wrong hash due to payload difference due to translated text
-
Hello,
We are currently working on sending the order data to the webmethods using a woocommerce webhook. We have 2 languages, ‘en’ and ‘fr’. The webhook is working fine for en language. But for FR its failing.
We’re sending the payload for generating hash using sha256. The hash keys never match for FR Site.?Our understanding is that if it works for EN, it should work for FR as well.
We’re using woocommerce REST API to get the order JSON. Here’s how we’re getting the order data : wc()->api->get_endpoint_data( “/wc/v3/orders/{$order_id}” )
We see some html tags like <trp-gettext data-trpgettextoriginal=4407>Items<\/trp-gettext> for FR language – meta data in the payload, while generating the hash, but when data is getting send only Items is getting sent as a request body. We suspect this is the reason for the issue.
This is an urgent issue, could you please help us to resolve this issue as soon as possible? How can we get the response without getting this html tags?
Thanks,
Pearl
- The topic ‘Webhook generates wrong hash due to payload difference due to translated text’ is closed to new replies.