Adyen / adyen-python-api-library

Adyen API Library for Python
MIT License
59 stars 42 forks source link

Hmac validation bank webhooks #302

Closed gcatanese closed 6 months ago

gcatanese commented 6 months ago

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

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud