diff --git a/Action/AuthorizeAction.php b/Action/AuthorizeAction.php index 51a0e0c..b5ebde0 100644 --- a/Action/AuthorizeAction.php +++ b/Action/AuthorizeAction.php @@ -21,8 +21,6 @@ public function execute($request) { RequestNotSupportedException::assertSupports($this, $request); - $model = ArrayObject::ensureArrayObject($request->getModel()); - throw new \LogicException('Not implemented'); } diff --git a/Action/CancelAction.php b/Action/CancelAction.php index 7429472..3a53698 100644 --- a/Action/CancelAction.php +++ b/Action/CancelAction.php @@ -20,8 +20,6 @@ public function execute($request) { RequestNotSupportedException::assertSupports($this, $request); - $model = ArrayObject::ensureArrayObject($request->getModel()); - throw new \LogicException('Not implemented'); } diff --git a/Action/NotifyAction.php b/Action/NotifyAction.php index dfa579d..a0a1240 100644 --- a/Action/NotifyAction.php +++ b/Action/NotifyAction.php @@ -37,7 +37,7 @@ public function execute($request) $this->gateway->execute($httpRequest = new GetHttpRequest()); - if ($completed = $this->api->doNotify($httpRequest->query)) { + if ($this->api->doNotify($httpRequest->query)) { $model['status'] = 'COMPLETED'; throw new HttpResponse('OK'); } else { diff --git a/Action/RefundAction.php b/Action/RefundAction.php index 296c6a3..d31956c 100644 --- a/Action/RefundAction.php +++ b/Action/RefundAction.php @@ -20,8 +20,6 @@ public function execute($request) { RequestNotSupportedException::assertSupports($this, $request); - $model = ArrayObject::ensureArrayObject($request->getModel()); - throw new \LogicException('Not implemented'); } diff --git a/Api.php b/Api.php index 99f9515..48a74dc 100644 --- a/Api.php +++ b/Api.php @@ -1,21 +1,15 @@ defaults($this->options); - $this->options = $options; } diff --git a/PayseraGatewayFactory.php b/PayseraGatewayFactory.php index 80a0fb3..6ebace7 100644 --- a/PayseraGatewayFactory.php +++ b/PayseraGatewayFactory.php @@ -45,7 +45,7 @@ protected function populateConfig(ArrayObject $config) $config['payum.api'] = function (ArrayObject $config) { $config->validateNotEmpty($config['payum.required_options']); - return new Api((array)$config, $config['payum.http_client'], $config['httplug.message_factory']); + return new Api((array)$config); }; } }