The library provides only support for validating webhook payloads that include the HMAC signature in the request body AdditionalData (i.e. standard webhooks).
This PR adds the method is_valid_hmac_payload to validate the webhook payloads that include the HMAC signature in the HTTP header (.i.e banking webhooks).
Summary
The library provides only support for validating webhook payloads that include the HMAC signature in the request body
AdditionalData
(i.e. standard webhooks).This PR adds the method
is_valid_hmac_payload
to validate the webhook payloads that include the HMAC signature in the HTTP header (.i.e banking webhooks).Tested scenarios
Added unit testing, tested with the Adyen Sample app