diff --git a/src/Client.php b/src/Client.php index 2aac43a..8912ba1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -123,7 +123,6 @@ public function set_signing_key( $signing_key ) { * @throws \Exception Throws exception when Rabobank OmniKassa 2.0 response is not what we expect. */ private function request( $method, $endpoint, $token, $data = null ) { - // URL. $url = $this->get_url() . $endpoint; /* @@ -171,12 +170,10 @@ private function request( $method, $endpoint, $token, $data = null ) { */ $args = \apply_filters( 'pronamic_pay_omnikassa_2_request_args', $args ); - // Request. $response = Http::request( $url, $args ); $data = $response->json(); - // Object. if ( ! \is_object( $data ) ) { throw new \Exception( \sprintf( @@ -189,7 +186,6 @@ private function request( $method, $endpoint, $token, $data = null ) { ); } - // Error. $object_access = new ObjectAccess( $data ); if ( $object_access->has_property( 'errorCode' ) ) { @@ -198,7 +194,6 @@ private function request( $method, $endpoint, $token, $data = null ) { throw $error; } - // Ok. return $data; }