src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsNotifications/Impl/IpnNotificationParser.php
public static function parseSnsMessage(Message $snsMsg)
    {
        // Create the message and extract the information we need
        $ipnMsg = new Message($snsMsg->getMandatoryField("Message"));
        self::_addMetadataToIpnMessage(
            $ipnMsg, 
            $snsMsg->getNotificationMetadata()
        );
        return $ipnMsg;
    }
public static function parseSnsMessage(Message $snsMsg)
    {
        // Create the message and extract the information we need
        $ipnMsg = new Message($snsMsg->getMandatoryField("Message"));
        self::_addMetadataToIpnMessage(
            $ipnMsg, 
            $snsMsg->getNotificationMetadata()
        );
        return $ipnMsg;
    }
public static function parseSnsMessage ( Message $ snsMsg ) { // Create the message and extract the information we need $ ipnMsg = new Message ( $ snsMsg -> getMandatoryField ( "Message" ) ) ; self :: _addMetadataToIpnMessage ( $ ipnMsg , $ snsMsg -> getNotificationMetadata ( ) ) ; return $ ipnMsg ; }
Converts a an sns message into a
ipn notification object

@param Messsage $snsMsg snsMessage

@throws OffAmazonPaymentsNotifications if there is an error

@return Message ipn message
Converts a an sns message into a ipn notification object