diff --git a/src/Omnipay/Common/Message/AbstractRequest.php b/src/Omnipay/Common/Message/AbstractRequest.php index e19e3085..299db883 100644 --- a/src/Omnipay/Common/Message/AbstractRequest.php +++ b/src/Omnipay/Common/Message/AbstractRequest.php @@ -209,7 +209,7 @@ public function validate() { foreach (func_get_args() as $key) { $value = $this->parameters->get($key); - if (empty($value)) { + if (! isset($value)) { throw new InvalidRequestException("The $key parameter is required"); } }