Skip to content

Ability for unlimited consumables & prices to plans #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

harrisonratcliffe
Copy link
Contributor

@harrisonratcliffe harrisonratcliffe commented Nov 18, 2024

This package is amazing but I had to modify to allow some of the following for my application:

  • ability to store prices and currency so that can easily be displayed to users on the app (optional)
  • ability to have unlimited consumables (courtesy of Allow unlimited usage #95)
  • make consumables by default set to false on features
  • add display_name to the plans and features table to return a clean plan name to end-users
  • formatted code with pint (optional)

Updated the 'consumable' boolean column to have a default value of false.
add the ability for unlimited usage on consumables which can be achieved with -1
this is useful if you use plan names such as premium-monthly and premium-yearly to return a better name like 'Premium' or 'Premium (Monthly)' to the end-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant