PayWithAmazon\ResponseParser::toArray PHP Method

toArray() public method

* toArray - converts XML into associative array
public toArray ( )
    public function toArray()
    {
        $response = $this->simpleXmlObject();
        // Converting the SimpleXMLElement Object to array()
        $response = json_encode($response);
        return json_decode($response, true);
    }