Skip to content

Commit

Permalink
Merge branch 'rogervila-check-payments-with-hash-equals'
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheduardo committed Oct 8, 2023
2 parents cba1838 + b9f4eec commit 8ae4fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sermepa/Tpv/Tpv.php
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ public function check($key, $postData)
$signatureReceived = $postData["Ds_Signature"];
$signature = $this->generateMerchantSignatureNotification($key, $parameters);

return ($signature === $signatureReceived);
return hash_equals($signature, $signatureReceived);
}

/**
Expand Down

0 comments on commit 8ae4fe9

Please sign in to comment.