Apply & Signal
Shipped production systems, open-source/eval repos, or quantified product metrics on a crisp 1-page resume.
AI & Tech / 2026-2027 Recruiting Cycle
Stripe screens relentlessly for software craft, financial correctness invariants, and clean developer-first API design. Candidates are expected to write clean working code quickly and reason through partial failures in distributed money movement.
Shipped production systems, open-source/eval repos, or quantified product metrics on a crisp 1-page resume.
Multi-part iterative coding extension, practical API/concurrency task, or product sense diagnostic.
Real-world system architecture, eval harness / metrics tradeoffs, or Bar Raiser STAR deep dives.
Cross-functional execution, safety/judgment conflict probes, and hiring-committee calibration.
Standalone whiteboard trivia without iteration
Bug Squash / Integration / System Design / Manager Loop evaluating multi-step requirement pivots, debugging speed, and product metrics tradeoffs
Scope idempotency keys by (merchant_account_id, idempotency_key) with a 24-hour TTL stored in an ACID relational store alongside a SHA-256 hash of the request payload. Use an atomic INSERT ... ON CONFLICT or advisory lock with recovery points (started -> network_call_in_flight -> committed): if an identical in-flight key arrives concurrently, return 409 Conflict (retryable); if the payload hash differs, return 400 IdempotencyError; if completed, replay the exact stored HTTP status and body. For non-atomic external bank calls, persist an intent state before calling the card network and reconcile ambiguous timeouts via network inquiry/reversal jobs rather than blindly retrying a fresh authorization.
Emit events transactionally via the outbox pattern (writing ledger state and event row in the same DB commit) into partitioned queues. Sign every payload with HMAC-SHA256 using a per-endpoint secret over timestamp + '.' + raw_body (rejecting timestamps >5 minutes old to block replay attacks) and support dual-secret rotation windows. Enforce per-endpoint concurrency caps and isolated retry queues (exponential backoff up to 72 hours, plus auto-disable with email alerts after consecutive multi-day failures) so a slow merchant endpoint taking 10s to respond never clogs healthy merchants' queues. Include a stable event ID so merchants can deduplicate at-least-once deliveries cleanly.
Model every money movement as an immutable JournalEntry containing two or more LedgerLines whose signed integer amounts in minor units (cents/yen, never floats) sum strictly to zero per currency. Separate write-heavy append-only postings from balance reads using sharded account partitions (by account_id) with optimistic/serializable balance checkpoints or versioned balance snapshots to eliminate full-table SUM scans. Handle high-contention hot accounts (like Stripe's platform fee account) via striped sub-accounts (e.g., 64 shards summed at read/reconciliation time). Enforce continuous async reconciliation comparing ledger totals against external bank settlement files and card-network clearing batches, alerting on any 1-cent variance.
Parse the comma-separated header cleanly by stripping whitespace, splitting optional ';q=value' weights (defaulting to 1.0, validating 0.0 <= q <= 1.0, ignoring q=0 exclusions), and preserving stable order on ties. Run matching in deterministic precedence tiers per descending q-group: (1) exact case-insensitive match against supported locales, (2) primary language subtag fallback (e.g., 'fr-FR' matching supported 'fr' or 'fr-CA'), and (3) wildcard '*' returning remaining unmatched supported locales in server preference order. Deduplicate output while preserving priority order and write targeted tests covering malformed q-values, duplicate tags, and mixed casing.
Represent currencies as directed graph nodes and rates as weighted edges (including inverse edges only if explicitly bidirectional, never assuming zero-spread symmetry). For direct and single-hop queries, use adjacency maps with BFS/DFS tracking visited nodes to avoid cycles. For maximizing conversion value across arbitrary hops, transform multiplicative weights into additive logs (-log(rate)) and run Bellman-Ford (or Dijkstra when all rates < 1 after fees): minimizing sum(-log(r)) maximizes product(r), and a negative cycle directly flags an arbitrage loop. Use exact Decimal/rational arithmetic for final monetary conversions and round only at the final currency minor unit using banker's rounding.
Keep core business logic strictly on the latest canonical internal schema (version N) so engineers never write version-branching conditionals inside payment flows. Express every breaking API change as an isolated, declarative compatibility Gate / Response Transformer module ordered chronologically from N down to oldest supported version. On ingress, normalize older request parameters forward into version N; on egress, walk the ordered chain of version transformers backward from N to the merchant's pinned Stripe-Version header (or account default). Auto-generate OpenAPI specs, typed SDKs, and changelogs directly from the gate registry, and run golden snapshot tests per version gate.
Classify decline codes before scheduling any retry: never retry hard declines (stolen card, invalid account, do_not_honor permanent); route soft declines (insufficient_funds, issuer_unavailable, velocity_limit) into a stateful dunning state machine. Train a lightweight propensity model scoring recovery probability by hour-of-day, day-of-month (payday spikes on 1st/15th), issuer BIN, and card-updater signals (auto-refreshing expired PANs via Visa/Mastercard Account Updater first). Enforce strict card-network compliance guardrails (e.g., max 15 retries in 30 days on Visa/Mastercard) in a deterministic policy layer so ML optimization can never trigger scheme fines, and pair failed attempts with hosted card-update links.
Split features into three latency tiers: (1) synchronous request features (BIN, AVS/CVV, device fingerprint, IP geo), (2) pre-aggregated sub-10ms streaming velocity features stored in low-latency KV/Redis clusters (card seen across N merchants in 10m, IP decline velocity, email age across the Stripe network), and (3) offline batch embeddings (merchant risk profile, historical dispute rate). Execute a fast gradient-boosted tree + compact neural ensemble on CPU/ONNX within a strict 40ms inference budget, followed by deterministic merchant Radar Rules (block/review/3DS challenge). Enforce a circuit-breaker fallback (rule-only + cached risk score) if feature stores exceed 50ms so fraud scoring never breaks checkout availability.
Separate checkout collection from seller disbursement using Separate Charges and Transfers (for multi-seller carts) rather than single-destination charges: charge the buyer on the platform account, hold funds in pending balance until fulfillment, then execute idempotent Transfers per seller net of platform application fees. Gate payouts (not necessarily initial onboarding) behind progressive KYC/KYB verification states (currently_due, eventually_due, payouts_enabled) driven by regional thresholds and sanctions screening. Clearly define negative-balance liability (platform vs connected account) for refunds and chargebacks, reserving a rolling holdback percentage for high-risk sellers so clawbacks do not leave uncollectible deficits.
Resist reading all 15 files top-to-bottom. First run the test suite to establish a clean baseline and inspect the exact failure stack trace and assertion diff. Reproduce the target bug with a minimal isolated unit test before touching production code. Trace the single execution path from API entry through state transitions using targeted logging or debugger breakpoints, verifying assumptions at each boundary (parsing, rounding, timezone/UTC, mutation vs copy, concurrency). Apply the smallest clean fix that preserves existing invariants, verify zero regressions across the full test suite, and explicitly call out any adjacent edge cases you noticed.
Classify every endpoint into explicit criticality tiers: Tier 0 (live payment authorizations, captures, token creation), Tier 1 (refunds, webhooks, checkout sessions), and Tier 2 (dashboard analytics, CSV exports, bulk list queries). At the edge proxy, apply per-merchant token buckets plus adaptive global concurrency limits (Little's Law / Vegas-style AIMD queue-latency feedback). Under saturation, shed Tier 2 and non-critical background jobs first, never shedding Tier 0 while lower tiers consume capacity. Return clear 429s with Retry-After on shed traffic, isolate database connection pools by tier so slow analytical queries can never starve payment write locks, and run periodic game-day load tests.
Use opaque cursor-based pagination (starting_after / ending_before keyed on the immutable, time-ordered object ID like ch_...) rather than SQL OFFSET/LIMIT. Cursor pagination runs an index range scan in O(log N + page_size) regardless of page depth and prevents duplicate or skipped rows when new charges insert at the head of the stream. Return a consistent envelope ({object: 'list', data: [...], has_more: true/false}) fetched via LIMIT (page_size + 1) to compute has_more without a costly COUNT(*). Bound maximum page_size (e.g., 100) and require indexed filter fields (created range, customer, status) to avoid full-table scans.
Decouple high-throughput event ingestion from invoice rating: expose an idempotent Meter Events API ingesting 100k+ raw events/sec (customer_id, event_name, value, timestamp, idempotency_key) into an append-only aggregation pipeline supporting sum, max, and unique-count rollups. Support hybrid pricing models cleanly (committed platform fee + prepaid credit burn-down + tiered overage + real-time spend alerts/hard caps) because AI startups face sudden 10x token-loop exposure. Provide a sub-minute Balance/Usage Preview endpoint so AI apps can display live remaining credits and enforce soft/hard cutoffs before an end-of-month $50k surprise invoice triggers disputes.
Frame a concrete STAR example showing pragmatic craft rather than gold-plating. Describe the specific shortcut proposed (e.g., an inconsistent API error contract, missing migration backfill verification, or weak reconciliation check), quantify the long-term blast radius (breaking external integrators permanently or causing silent billing drift), explain the fast, scoped design improvement you implemented within the release window, and close with measurable durability (zero breaking changes over 2 years, cut integration support tickets by 40%, or caught real discrepancies in shadow mode).
Abstract card processing behind a canonical internal PaymentState machine mapped to acquirer-specific adapters (ISO 8583 / REST). Score eligible acquirers per transaction using local acquiring match (routing EU cards to EU acquirers cuts cross-border declines and saves 50-100 bps), issuer-BIN historical auth-rate lift, network-token availability, and live health telemetry (timeout/5xx circuit breaker). For soft processor-side failures (connection timeout, processor 503 — never cardholder insufficient funds), execute a safe automatic failover to a secondary acquirer within the single checkout latency budget (<2s), preserving idempotency and recording exact acquirer fee/FX attribution for downstream settlement reconciliation.
Instrument the end-to-end 'time-to-first-successful-test-payment' funnel across docs, CLI, and API logs, clustering the top 5 first-hour 4xx errors and drop-off points. Typically friction clusters around local webhook forwarding, ambiguous test-vs-live key mismatches, and opaque invalid-parameter errors. Redesign three levers: (1) actionable error responses returning the exact offending parameter, fix hint, and deep-linked doc URL, (2) a zero-config Stripe CLI local listener with one-command event replay (`stripe trigger payment_intent.succeeded`), and (3) interactive copy-paste quickstarts pre-populated with the logged-in developer's sandbox keys. Validate via unmoderated 30-minute developer usability sessions targeting >80% first-attempt completion.
Enter the license key emailed after checkout to unlock all 26 firm banks and unlimited timed scoring in this browser.