diff --git a/src/Chaching/Drivers/TBCardPay/Request.php b/src/Chaching/Drivers/TBCardPay/Request.php index 3559156..4b8ebf7 100644 --- a/src/Chaching/Drivers/TBCardPay/Request.php +++ b/src/Chaching/Drivers/TBCardPay/Request.php @@ -190,7 +190,7 @@ protected function validate() )); } - if (!filter_var($this->fields['IPC'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE)) + if (!filter_var($this->fields['IPC'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6 | FILTER_FLAG_NO_RES_RANGE)) throw new InvalidOptionsException(sprintf( "Field %s (or IPC) has an unacceptable value '%s'. Valid " . "client IP address has to be a properly formatted IPv4.",