Stripe Connect is now the default and preferred method to connect your Stripe account with your Paid Memberships Pro site.

Some sites, however, may be required to use the API Key method to set up the Stripe Gateway. This guide demonstrates how to use the pmpro_stripe_show_legacy_keys_settings filter to add back the settings fields for Publishable Key and Secret Key.

Banner for the Code Recipe Guide to Enable Legacy API Key Settings Field for Stripe in PMPro

The Code Recipe

add_filter( 'pmpro_stripe_show_legacy_keys_settings', '__return_true' );

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Using the Stripe API Key method does not allow you to easily toggle between Live or Test mode in the Stripe gateway.

If you need to use Stripe in “Test mode”, you must replace the fields for Publishable Key and Secret Key with the correct Test mode credentials for your Stripe account. When you are ready to switch your site back to Live mode, you must replace the Test keys with your Stripe account’s Live keys.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo