Skip to content

Commit e75090c

Browse files
Updated logic code
1 parent dfab6db commit e75090c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Message/Concerns/ResponseSignatureValidation.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ trait ResponseSignatureValidation
2424
protected function validateSignature(): void
2525
{
2626
$data = array_filter(array_keys($this->data), function ($parameter) {
27-
return 0 === strpos($parameter, 'vpc_');
27+
return 0 === strpos($parameter, 'vpc_') && 'vpc_SecureHash' !== $parameter;
2828
});
2929
$signature = new Signature(
3030
$this->getRequest()->getVpcHashKey()
@@ -34,11 +34,4 @@ protected function validateSignature(): void
3434
throw new InvalidResponseException(sprintf('Data signature response from OnePay is invalid!'));
3535
}
3636
}
37-
38-
protected function getSignatureParameters(): array
39-
{
40-
return array_filter(array_keys($this->data), function ($parameter) {
41-
return 0 === strpos($parameter, 'vpc_');
42-
});
43-
}
4437
}

0 commit comments

Comments
 (0)