Skip to content

CONV-270: Add credit pack transaction metadata#239

Merged
menvil merged 1 commit into
developfrom
feature/CONV-270-add-credit-pack-transaction-metadata
Jun 2, 2026
Merged

CONV-270: Add credit pack transaction metadata#239
menvil merged 1 commit into
developfrom
feature/CONV-270-add-credit-pack-transaction-metadata

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds metadata verification test: pack_key, pack_credits, stripe_event_id, stripe_checkout_session_id, stripe_payment_intent_id, stripe_price_id all present in credit_transactions.metadata_json
  • Metadata was already written in CONV-267/269; this task adds the explicit test

Test plan

  • tests/Feature/Billing/CreditPackWebhookHandlerTest.php — metadata shape verified
  • composer test passes (482 tests)
  • composer lint passes

🤖 Generated with Claude Code


Summary by cubic

Adds tests to verify credit pack purchase transactions persist Stripe metadata and that credits are granted only once per checkout session. Fulfills CONV-270 by asserting credit_transactions.metadata_json includes pack_key, pack_credits, stripe_event_id, stripe_checkout_session_id, stripe_payment_intent_id, and stripe_price_id.

Written for commit 4fa1037. Summary will update on new commits.

Review in cubic

@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: 8f008b92-ad95-4f7c-9324-024ae1aa3cd5

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-270-add-credit-pack-transaction-metadata

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.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@menvil menvil force-pushed the feature/CONV-270-add-credit-pack-transaction-metadata branch from f45df48 to 4fa1037 Compare June 2, 2026 18:32
@menvil menvil merged commit 1b65b43 into develop Jun 2, 2026
1 check was pending
@menvil menvil deleted the feature/CONV-270-add-credit-pack-transaction-metadata branch June 2, 2026 18:33
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