Shopify.REST.verify_hmac_for_webhook

You're seeing just the function verify_hmac_for_webhook, go back to Shopify.REST module for more information.
Link to this function

verify_hmac_for_webhook(hmac, body, shared_secret)

Specs

verify_hmac_for_webhook(String.t(), String.t(), String.t()) ::
  {:ok, String.t()} | {:error, String.t()}

Same as verify_hmac_for_oauth/3 but intended to be used for verifying the signature of a webhook payload.

Example

hmac = "ruonad9ilcg3rhfv89nkzi4x7kkh7jibyhxkbewugvi="
body = "<webhook request body>"
shared_secret = "hush"

{:ok, hmac} = Shopify.REST.verify_hmac_for_webhook(hmac, body, shared_secret)