'Attempt to retrieve the app id from the storedata in the receipt.'

def get_app_id(self, raise_exception=True):

    try:
        return int(self.get_storedata()['id'])
    except Exception as e:
        if raise_exception:
            log_info('Invalid    store    data    for    app    id:    {err}'.format(err=e))
            raise InvalidReceipt('WRONG_STOREDATA')
