/** Public method to perform a call to the API */ public function plazaCall($targetUri, $httpMethod = 'POST', $xmlPayLoad = false, $mimeType = 'application/xml') { $response = $this->_compileAndPerformHTTPCall($targetUri, $httpMethod, $xmlPayLoad, $mimeType); if ($this->debug) { Tools::debug($response, true); } $xmlObject = new \DOMDocument(); $xmlObject->loadXML($response); return Tools::xmlToArray($xmlObject); }