I've been on the other side of that scenario.
In our case, we bought a license for the software + source code and hosted it in our data center. We paid for maintenance and a support agreement that included a fixed number of hours for break/fix and new features.
Worked pretty well.