src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsNotifications/Impl/SnsMessageParser.php
public static function parseNotification($headers, $jsonString)
    {
        self::_validateHeaders($headers);
        $snsMsg = new Message($jsonString);
        self::_checkForCorrectMessageType($snsMsg);
        self::_setMetadataForMessage($snsMsg);
        return $snsMsg;
    }
public static function parseNotification($headers, $jsonString)
    {
        self::_validateHeaders($headers);
        $snsMsg = new Message($jsonString);
        self::_checkForCorrectMessageType($snsMsg);
        self::_setMetadataForMessage($snsMsg);
        return $snsMsg;
    }
public static function parseNotification ( $ headers , $ jsonString ) { self :: _validateHeaders ( $ headers ) ; $ snsMsg = new Message ( $ jsonString ) ; self :: _checkForCorrectMessageType ( $ snsMsg ) ; self :: _setMetadataForMessage ( $ snsMsg ) ; return $ snsMsg ; }
Convert a json string to a json msg that
meets our expections of a SnsMessage

@param string $jsonString raw data as json string

@throws OffAmazonPaymentsNotifications_InvalidMessageException if not valid json

@return Message converted message
Convert a json string to a json msg that meets our expections of a SnsMessage