PayWithAmazon\IpnHandler::getMessage PHP Method

getMessage() private method

private getMessage ( )
    private function getMessage()
    {
        $this->snsMessage = json_decode($this->body, true);
        $json_error = json_last_error();
        if ($json_error != 0) {
            $errorMsg = "Error with message - content is not in json format" . $this->getErrorMessageForJsonError($json_error) . " " . $this->snsMessage;
            throw new \Exception($errorMsg);
        }
    }