/** * Send a message to the Verifone WS. * * @param RequestInterface $request * @return Response */ protected function send(RequestInterface $request) { $rawResponse = $this->client->ProcessMsg($request->getMessage()); $response = new Response($rawResponse, $this->client); if (isset($this->logger) && $this->logger instanceof LoggerInterface) { $this->logger->info($this->maskCreditCardNumber($response->getDebugInfo())); } return $response; }