ruby on rails - gocardless webhook signature mismatch -


i going through gocardless getting started guide, when try setup webhook (sandbox mode), don't correct value.

the code copy-pasted https://developer.gocardless.com/getting-started/api/staying-up-to-date-with-webhooks/#building-a-webhook-handler

and looks 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 missing? help


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - SSE Emitter : Manage timeouts and complete() -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -