Marketpress Payment Gateway Integration

Is it possible for me to integrate a payment gateway into marketpress (such as CCAvenues). If so, can you give me some pointers on how to do the same?

Thanks.