This repository contains code that Opty used to run its own infrastructure. It's very likely that this won't work for your organization but can be a foundation block to customize and match your need
Opty is available for consultant. Email us at hello@getopty.com for any question