feat(billing): charge service fees on Kilo Pass - #5265
Conversation
fb58b8e to
9613595
Compare
7696e84 to
ea2270f
Compare
9613595 to
37349ab
Compare
ea2270f to
199deb1
Compare
Code Review SummaryStatus: 2 Issues Found | Recommendation: Address before merge Executive SummaryThe leftover-key renewal skip is fixed, but attach now deletes the staged fee after Stripe has already applied it to draft invoices, then records the assessment as charged. Overview
Issue Details (click to expand)CRITICAL
WARNING
Files Reviewed (6 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit 37349ab)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 37349ab)Status: 4 Issues Found | Recommendation: Address before merge Executive SummaryCheckout and seat-capacity writes persist one-shot Overview
Issue Details (click to expand)CRITICAL
WARNING
Files Reviewed (7 files)
Reviewed by grok-4.6 · Input: 397.5K · Output: 71.7K · Cached: 2M Review guidance: REVIEW.md from base branch |
Attach fees to personal and organization Kilo Pass Checkout and Stripe-advanced invoices, including org seat-capacity updates.
37349ab to
f7b5df8
Compare
199deb1 to
878935f
Compare
|
Addressed the latest Kilo review summary in |
Summary
Activates service fees for personal and organization Kilo Pass Checkout and Stripe-advanced invoices while excluding seat value.
Why this change is needed
Kilo Pass billing is more complex than top-ups: subscriptions renew, upgrades prorate, organizations can mix seats and Kilo Pass on one invoice, and Checkout promotions can proportionally discount the fee line. The implementation must charge one fee on eligible Kilo Pass value without changing entitlements or charging seats.
How this is addressed
Stack: #5236 → #5262 → #5263 → #5264 → #5265 (this PR) → #5266.
Human Verification
No new product or browser verification was performed while publishing this PR. The completed local validation run covered standard, 20%-discount, and 100%-discount Personal Kilo Pass Checkout; organization Kilo Pass with existing seats; seat-capacity changes; and seat-only exclusion.
Reviewer Notes
Human Reviewer Flags
expected_fee_minorandcharged_fee_minorcan therefore differ legitimately.chargedoutcome with zero settled product and zero settled fee.Code Reviewer Agent
Code Reviewer Notes