Custom Payment Gateway

Hi - I am wanting to integrate with a payment gateway that is not yet supported by MarketPress. Where can I find some documentation to help me develop this add-on?
thanks for any pointers :slight_smile: