Skip to content
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

do something like this to read benefits from Polar API ( not working right now for some reason ) #267

Open
github-actions bot opened this issue Dec 19, 2024 · 0 comments

Comments

@github-actions
Copy link

for (const benefit of sub.product.benefits) { switch (benefit.id) { case env.POLAR_USERNAME_WITHOUT_NUMBER_ENDING_BENEFIT_ID: benefits.add('non_numbered_username'); break; case env.POLAR_CUSTOM_DOMAIN_BENEFIT_ID: benefits.add('custom_domain'); break;


weird/src/lib/billing.ts

Lines 87 to 94 in ce005bb

benefits.add('custom_domain');
// TODO: do something like this to read benefits from Polar API ( not working right now for some reason )
// for (const benefit of sub.product.benefits) {
// switch (benefit.id) {
// case env.POLAR_USERNAME_WITHOUT_NUMBER_ENDING_BENEFIT_ID:
// benefits.add('non_numbered_username');
// break;


This issue was generated by todo-issue based on a TODO comment in ce005bb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants