Skip to content

[PW-5867] HMAC verification functions corrupt notification item payload #148

@ghost

Description

Python version: 3.9.6
Library version: 5.1.0
Description
Adyen.util.is_valid_hmac_notification and Adyen.util.is_valid_hmac delete the entire "additionalData" key and dictionary from a notification, discarding any merchant provided metadata and other information in there.

Steps to reproduce:

  1. Consume a webhook notification with HMAC
  2. Run the item through above helper functions
  3. See the "additionalData" is removed from the notification item, including all other data in there

Please see:

As a workaround, we have to deepcopy the entire notitication before validating it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions