Services/Xero.php
authoredward <edward@roojs.com>
Thu, 28 Jun 2018 06:23:41 +0000 (14:23 +0800)
committeredward <edward@roojs.com>
Thu, 28 Jun 2018 06:23:41 +0000 (14:23 +0800)
Services/Xero.php

index e8ea0f8..b241e4c 100644 (file)
@@ -64,16 +64,6 @@ class Services_Xero
             return false;
         }
         
-        $response = $this->XeroOAuth->request('POST', $this->XeroOAuth->url('Invoices', 'core'), array(), $xml, $this->format);
-      
-        if (empty($this->XeroOAuth->response['code']) ||  $this->XeroOAuth->response['code'] != 200) {
-            throw new Exception('Xero Error: ' . $this->XeroOAuth->response['response']);
-        }
-        
-        $invoice = $this->XeroOAuth->parseResponse($this->XeroOAuth->response['response'], $this->XeroOAuth->response['format']);
-        
-        return $invoice;
-        
         $response = $this->XeroOAuth->request('POST', $this->XeroOAuth->url('Invoices', 'core'), $params, $xml, $this->format);
         
         $data = $this->XeroOAuth->parseResponse($response['response'], $response['format']);