Skip to content

CONV-240: Create billing plans config#210

Merged
menvil merged 1 commit into
developfrom
feature/CONV-240-create-billing-plans-config
Jun 2, 2026
Merged

CONV-240: Create billing plans config#210
menvil merged 1 commit into
developfrom
feature/CONV-240-create-billing-plans-config

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Created config/billing_plans.php with free (50 credits), pro (1000 credits), max (5000 credits) plan definitions
  • Paid plans reference Stripe price IDs via env vars with test fallbacks
  • Added STRIPE_PRO_PRICE_ID and STRIPE_MAX_PRICE_ID placeholders to .env.example
  • Config tests verify all three plans exist and paid plans have price IDs

Test plan

  • composer test passes (430 tests)
  • composer lint passes

🤖 Generated with Claude Code


Summary by cubic

Adds a central billing plans config with Free, Pro, and Max plans, monthly credits, and Stripe price IDs to support subscription setup (CONV-240). Adds .env placeholders for paid plan price IDs and tests to validate the config.

  • Migration
    • Set STRIPE_PRO_PRICE_ID and STRIPE_MAX_PRICE_ID in .env for production; dev/test use price_test_pro and price_test_max by default.

Written for commit b9d72d4. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@menvil menvil merged commit 3bb6886 into develop Jun 2, 2026
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: bcdcc6b4-37e6-4b6a-a7eb-ecfb1ba468e3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/CONV-240-create-billing-plans-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@menvil menvil deleted the feature/CONV-240-create-billing-plans-config branch June 2, 2026 14:35
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