I am going through the gocardless getting started guide, but when I try to setup a webhook (sandbox mode), I don't get the correct value.
The code is copy-pasted from https://developer.gocardless.com/getting-started/api/staying-up-to-date-with-webhooks/#building-a-webhook-handler
and looks like this
computed_signature = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'),
secret,
request.raw_post)
provided_signature = request.headers['Webhook-Signature']
Rack::Utils.secure_compare(provided_signature, computed_signature)
# => false
What am I missing? Thanks for any help