Changing Payment Gateway in Membership 2 Pro

Hi! We use Paypal as our payment gateway in Membership 2 Pro. We ultimately want to switch to using Stripe for all payments. What will happen to all the existing memberships and recurring payments via Paypal if we disable the Paypal gateway?

What is your recommended process to transfer all our members to using Stripe?


  • Ash

    Hello David @ BBS

    Switching gateway will deactivate your current members, they have to resubscribe on your site using their credit card.

    What you can do is to enable both paypal and stripe gateways and then hide the paypal gateway so no new member can subscribe using paypal. But existing memberships will keep working.

    To hide the paypal gateway but keeping it active, you can use the following code:

    add_filter( 'ms_controller_gateway_purchase_button_paypalstandard', '__return_false', 10 );

    You can use this code in your child theme's functions.php if the theme is not changed. Otherwise mu-plugin is the best option. To create a mu-plugin, go to wp-content/mu-plugins folder. If there is no mu-plugins folder then, create one. Now, inside the mu-plugins folder create file with name anything.php (make sure file extension is .php). Now start with a <?php tag and then put the above code.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.