Add stripe-sample fixture - #1
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR introduces a complete Stripe sample fixture for benchmarking API detection scanners. It includes documentation, test expectations defining which Stripe methods should be detected across three Express servers, configuration mapping, and implementations of one-time checkout, fixed-price subscription, and usage-based metered subscription flows. ChangesStripe Sample Fixture
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Stripe SDK usage from two official Stripe sample repos:
stripe-samples/checkout-one-time-payments@1103d50(commit 2026-05-01) — checkout/session flow.stripe-samples/subscription-use-cases@fb6e9d4(commit 2026-05-01) — fixed-price subscriptions and usage-based subscriptions/meters.3 vendored Node server files + 1 hand-added config file (
src/config/methods.js) with object-literal strings shaped like SDK method chains ("charges.create","checkout.sessions.create", etc.) to test A6 false-positive handling. 19 expected endpoints inexpected.json(config file deliberately NOT annotated — its detections would be false positives). 0 expected findings (the vendored servers are flat route handlers with no loops over API calls).Sanity-check scan: scanner detected 17 Stripe call sites and 0 false positives from the config file — A6 currently passes on this fixture. The benchmark will surface several real-but-missed SDK call sites (
prices.retrieve,prices.list,invoices.retrieveUpcoming,billing.meters.create,v2.billing.meterEvents.create,prices.create) — those are recall gaps documented in expected.json, not fixture errors.See
stripe-sample/FIXTURE.md.Summary by CodeRabbit
New Features
Documentation