YITH WooCommerce Membership is a plugin that allows you to organize the content of your site into plans and make it accessible only to users who have paid for it.
With this plugin, you can offer your users a wide selection of products in exchange for a cost.
The combination of the two plugins allows you to show badges to users with a specific membership plan.
After installing and activating both plugins, start creating your membership plans as described here.
Now you can configure badges for the plans you have created.
When creating any badge rule, you will be able to choose to show your badges only to members of specific plans.
In the example below, we want to show the Golden badge to members owning the Gold plan.
This is what only Gold members will see.