What potential pitfalls should developers be aware of when implementing SHA1 hashing for payment verification in PHP?

Developers should be aware that SHA1 hashing is considered weak and vulnerable to collision attacks. It is recommended to use more secure hashing algorithms such as SHA256 or SHA512 for payment verification in PHP.

// Use SHA256 hashing for payment verification
$hash = hash('sha256', $dataToHash);