Payment gateways for fundraising

Is there a way to code or link to our own payment gateway?

Mike