There is a lot to online payment system.
Each company has in own way and API of interfacing with their application. Most of them support SOAP or Direct http.
Before you can think of integration, you need to know your processing company first.
Oleku Konko
www.oleku.org