
Give your customers the option to select a membership duration and offer them a discount for a longer term when selling non-recurring memberships. This is a great way to collect a larger up-front payment from members and offer an incentive to pay for membership in advance.
In this code recipe, we demonstrate how to offer a 20% discount when members prepay for 2 years of membership and a 25% discount for members that purchase a 3 year membership in advance. If you have a membership level with a recurring subscription and would like to configure something similar we recommend using the Payment Plans Add On.