Sha256: 92acae581eb4c66d1571305adbe6d5e027d0b5f9142152457a95092c298b7f8a
Contents?: true
Size: 338 Bytes
Versions: 18
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true require 'base64' require 'openssl' module CyberbizExpress module NinjaVan class Webhook def decode_webhook_payload(webhook_payload) hash = OpenSSL::HMAC.digest('sha256', CyberbizExpress::NinjaVan.client_secret, webhook_payload) Base64.encode64(hash) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems