• Resolved shahpearl

    (@shahpearl)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrei

    (@andrei202)

    Hey there,

    Thanks for reaching out to us!

    Please try adding the domain of woocommerce under exclude gettext strings as shown in the example.

    Let me know if it helps.

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Since 5 days have already passed without getting any reply from you, I will mark this thread as “Resolved”.

    Have a great day!

    Kind Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Webhook generates wrong hash due to payload difference due to translated text’ is closed to new replies.