How do I create a special payment processor to ProSites

I have been requested to add a custom payment processor for 2CheckOut in ProSites. As we are in Heavy lifting on new plugins and features right now, I would like to know if you have documentation for adding additional payment processors before diving into the code to look whats going on, as it would save me a few hours worth of code reading.