How to add custom payment gateway to prosites?

I am using a gateway other than paypal and which is not listed with prosite.How to add custom payment gateway to prosites?