This recipe demonstrates how to use the pmpro_set_application_fee_percentage
filter to adjust the default fee added to sites using Stripe Connect in PMPro v2.6+. You can use this filter to increase or decrease the default fee added to unlicensed PMPro sites that use Stripe Connect.
Table of contents
About Stripe Connect Fees
Users who are connected through the Paid Memberships Pro Stripe Connect interface are charged an additional 2% per transaction. This fee goes to Stranger Studios, the developers of Paid Memberships Pro, and is used to support the Connect server, Stripe gateway development, and the Paid Memberships Pro platform in general. Anyone with a premium membership with an active License Key validated on their site will avoid that 2% fee on all new orders and subscriptions.
Developers can use the code recipe below to adjust the fee. This adjustment will only apply to new orders and is not retroactive. For example, if you use this recipe to remove the fee, it will not remove the fee from past orders or new recurring subscription payments.
The Code Recipe
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.
Line 12 of this recipe is active and sets the application fee to 0%. This means that you will not contribute any additional fee amount to Stranger Studios for use of the open source Paid Memberships Pro plugin. Line 13 demonstrates how to increase the fee to 2.5% as a gesture of your appreciation for ongoing support and development of the Paid Memberships Pro platform.
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.