private function parseResponse($data, $op)
    {
        $arr = array();
        $xml = new \SimpleXMLElement($data);
        $xml = $xml->xpath('/soap:Envelope/soap:Body');
        $xml = $xml[0];
        $data = json_decode(json_encode($xml));
        $opResponse = $op . 'Response';
        $opResult = $op . 'Result';
        $arr = $this->object2array($data->$opResponse->$opResult);
        return $arr;
    }
private function parseResponse($data, $op)
    {
        $arr = array();
        $xml = new \SimpleXMLElement($data);
        $xml = $xml->xpath('/soap:Envelope/soap:Body');
        $xml = $xml[0];
        $data = json_decode(json_encode($xml));
        $opResponse = $op . 'Response';
        $opResult = $op . 'Result';
        $arr = $this->object2array($data->$opResponse->$opResult);
        return $arr;
    }
private function parseResponse ( $ data , $ op ) { $ arr = array ( ) ; $ xml = new \ SimpleXMLElement ( $ data ) ; $ xml = $ xml -> xpath ( '/soap:Envelope/soap:Body' ) ; $ xml = $ xml [ 0 ] ; $ data = json_decode ( json_encode ( $ xml ) ) ; $ opResponse = $ op . 'Response' ; $ opResult = $ op . 'Result' ; $ arr = $ this -> object2array ( $ data -> $ opResponse -> $ opResult ) ; return $ arr ; }
Parse the transaction response

@return array
Parse the transaction response