Module: Veriff::Webhook
- Included in:
- Veriff::Webhooks::Decision, Veriff::Webhooks::Event, Veriff::Webhooks::WatchlistScreening
- Defined in:
- lib/veriff/webhook.rb
Instance Method Summary collapse
Instance Method Details
#parse(body, signature) ⇒ Object
5 6 7 8 9 |
# File 'lib/veriff/webhook.rb', line 5 def parse(body, signature) return new(body) if Veriff::validate_signature(body, signature) raise Webhooks::InvalidSignatureError, 'Given signature does not match body and API Secret' end |