Let’s face it, dealing with refunds is an unavoidable part of your membership business. Some number of your refunds will be from legitimate users that realize they do not need or want your membership any more.

Some refunds, though, may be from abusive users who know that they can sign up, consume your membership product (whether that’s support, premium content or guides, downloads and more), then cancel and request a refund right away. If you are seeing this become a widespread problem, check out the code recipes below.

Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

About The Code Recipes

This post includes three different recipes based on how you want to approach the restriction on a new checkout. In each case, the user will see a notice if they try to purchase membership that can be adjusted for your needs. The default message reads: Please contact us about your account to complete checkout..

  1. Restrict checkout if the LAST order was refunded,
  2. Restrict checkout if the user has ANY refunded order history,
  3. Restrict checkout if the user has ANY refunded order history, but ALLOW checkout if their LAST order was successful.

Code Recipe: Restrict if the LAST order was refunded.

Code Recipe: Restrict if there are ANY refunded orders in history.

Code Recipe: Restrict if there are ANY refunded orders in history, but allow checkout if the last order was successful.

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.

Feel free to alter the message in the recipe that’s shown at checkout if the user is not able to register.

More about Refunds and PMPro

If you are new to PMPro, check out some of these other articles related to member refunds:

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