/** * @param array $pgwResponse * @return bool */ public function isPgwResponseValid($pgwResponse) { return $pgwResponse['pgw_signature'] == SignatureGenerator::generateSignatureFromArray($this->secretKey, $pgwResponse); }