MAC is generated incorrectly for Aktia because MAC calculation relies that bank returns query parameters in correct order.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | mac-string-generated-in-wrong-order-2374777-6.patch | 5.57 KB | tuutti |
| #6 | interdiff-2374777-4-6.txt | 3.32 KB | tuutti |
| #4 | mac-string-generated-in-wrong-order-2374777-4.patch | 5.21 KB | tuutti |
| #1 | mac-string-generated-in-wrong-order-2374777-2.patch | 1.15 KB | tuutti |
Comments
Comment #1
tuutti commentedComment #2
lauriiiComment #3
lauriiiComment #4
tuutti commentedComment #5
lauriiithank you for working on the tests! In general this looks pretty good already. Just some code style / documentation comments.
It would be useful to document here why do we need to set these in specific order
This could be more describive, i.e. "Generates mac hash based on chosen encryption algorithm."
These are missing description as per Drupal documentation coding standards
There shold be empty line before @return statement
Could we rename this to "tupas_registration_generate_mac_hash"
It might be more obvious to transfer this to use switch instead of if
According to Drupal documentation standards this should be on single line
We should document the parameteres on the docblock
Comment #6
tuutti commentedComment #8
lauriiiThanks for the fix & writing the tests!