Skip to content

Commit

Permalink
Merge pull request #495 from BoulangerV/MAGE-538-Change_hash_calculation
Browse files Browse the repository at this point in the history
MAGE-538: Change hash method
  • Loading branch information
janteuber authored Mar 7, 2024
2 parents e2d80b5 + af2fa5d commit 15462b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Payone/ClientApi/Service/GenerateHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public function generate(Payone_ClientApi_Request_Interface $request, $securityK
$hashString .= $requestData[$key];
}

$hashString .= $securityKey;
$hash = md5($hashString);
$hash = hash_hmac('sha384', $hashString, $securityKey);
return $hash;
}

Expand Down

0 comments on commit 15462b6

Please sign in to comment.