I'd put this into our transaction class? You could add the notification part into the addTranscation method instead of making it a new function wrapper only in this payouts cron. Just an idea.