File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments