Skip to content

CONV-258: Create credit packs config#227

Merged
menvil merged 1 commit into
developfrom
feature/CONV-258-create-credit-packs-config
Jun 2, 2026
Merged

CONV-258: Create credit packs config#227
menvil merged 1 commit into
developfrom
feature/CONV-258-create-credit-packs-config

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds config/billing.php with credit_packs section (small/medium/large packs)
  • Each pack has label, credits, stripe_price_id (from env), description
  • Updates .env.example with STRIPE_CREDIT_PACK_{SMALL,MEDIUM,LARGE}_PRICE_ID placeholders

Test plan

  • tests/Feature/Billing/CreditPacksConfigTest.php — verifies pack keys and shape
  • composer test passes (460 tests)
  • composer lint passes

🤖 Generated with Claude Code


Summary by cubic

Implements CONV-258 by adding a configurable set of Stripe credit bundles. Adds credit_packs for small, medium, and large options and a test to lock the config shape.

  • New Features

    • config/billing.php defines three packs: 500, 2,000, and 10,000 credits, each with label and description.
  • Migration

    • Set STRIPE_CREDIT_PACK_SMALL_PRICE_ID, STRIPE_CREDIT_PACK_MEDIUM_PRICE_ID, and STRIPE_CREDIT_PACK_LARGE_PRICE_ID in your environment.

Written for commit 40512c4. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@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: 5c2aabde-7763-497e-9de3-ada0596b043c

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-258-create-credit-packs-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 merged commit 0b05602 into develop Jun 2, 2026
4 checks passed
@menvil menvil deleted the feature/CONV-258-create-credit-packs-config branch June 2, 2026 18:29
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