Documentation for custom payment gateway for the Membership plugin

I was wondering if there is any documentation available for creating a custom gateway for the Membership plugin. I've seen some other posts on the forum but none of them mention anything about documentation.