If there is a payment gateway that you would like to use that is not currently supported by MemberPress, you can follow the instructions here to develop your own custom gateway.
If you feel up to the task, here are some basic instructions and suggestions that you can follow:
- Your gateway class must be named in the format:
MeprSomeOtherGateway
- The file must have the same name as the class (Plus the .php), so for example:
MeprSomeOtherGateway.php
- We do not recommend just dropping it in the
app/gateways
folder … even though that will work, it might make updates hard. Rather, we suggest that you create your own, simple WordPress plugin that uses themepr-gateway-paths
filter (you can see how this is used inapp/lib/MeprGatewayFactory.php
) to add your new plugin's directory as a MemberPress search path for gateways. - The class must extend the abstract base class
MeprBaseRealGateway
(found inapp/lib/MeprBaseRealGateway.php
). That will show you the interface. - To get all of the transactions and subscriptions right, you may need to look through one of the other gateways found in
app/gateways
of the plugin. - Finally, an important thing to remember here is that if the gateway you are connecting to does not do automated recurring billing (something like Authorize.net's ARB, PayPal's Recurring Billing profiles, and Stripe's subscriptions) then you will have a hard time getting recurring billing working without creating your own cron job that looks at the transaction table and subscriptions in the posts table and bills.