public function sendData($data)
 {
     if ($this->validar_pedido()) {
         $arraydados = array("chave" => $this->getApiKey(), "valor" => $this->getAmount(), "id" => $this->getTransactionId());
         //cada canal tem a sua chave
         $url = $this->getUrl();
         try {
             $client = new \SoapClient($url, array('cache_wsdl' => WSDL_CACHE_NONE));
             $result = $client->gerarReferenciaMB($arraydados);
         } catch (SoapFault $sf) {
             throw new \Exception($sf->getMessage(), $sf->getCode());
         }
         return $this->response = new Response($this, $result);
     } else {
         return $this->response = new Response($this, "erro: comfir-me se preencheu todos os dados corretamente");
     }
 }