Loading…

Stripe
Global payments and financial infrastructure platform building sophisticated technology for online commerce
- 117 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Learning from explanations
The post investigates whether training a risk assessment model on explanations, in addition to labels, improves decision performance. Standard supervised fine-tuning (SFT) on both labels and explanations together degrades performance because the loss is dominated by the longer explanation tokens. The authors propose two-stage SFT: first train on labels and explanations (knowledge distillation), then train on labels alone (decision calibration), with the label placed before the explanation to avoid conditioning on generated reasoning. This approach achieves 39% higher recall at human-review precision on fraud review compared to label-only SFT, and the gains scale with the amount of explanation data across multiple risk assessment tasks. On-policy distillation (OPD) is used to restore explanation quality lost during the second stage, while preserving the decision gains, by having the student generate responses and the frozen teacher score each token to provide a token-level reward.
Stripe evals: Measuring real-world coding agent performance
Stripe built an evaluation framework to measure how well coding agents build high-quality Stripe integrations, addressing the problem that agents bias toward older APIs and miss key features. The benchmark includes 69 scenarios across one-time payments, subscriptions, and Connect, tested on 14 model and harness pairs with and without the Stripe agent plugin. A Stripe agent plugin improved scores by 3 to 8 percentage points across all agents and reduced web searches by 96%, as models relied on trusted guidance instead of searching the web. The plugin also reduced outdated parameter references from 7% to 1.3% of API call parameters, and agents wrote about 40% fewer test lines. However, strict pass rates requiring all criteria to pass dropped the average from 78.1% to 29.4%, showing agents struggle with the last mile of correctness, such as checking order eligibility after payment.
Billing customizations: change how discounts are applied
Stripe Billing now lets developers customize discount calculation through extension points, replacing workarounds like managing multiple coupons or restructuring product catalogs. The discount calculation extension point runs a TypeScript script in Stripe’s runtime, making the logic readable, testable, and maintainable. Scripts can target discounts by price metadata or native properties such as recurring interval, usage type, or unit amount. The same coupon can behave differently for different prices, for example giving annual subscribers a full discount while splitting it across months for monthly subscribers. Configurable fields in the script allow non-technical users to set parameters like discount percent or seat caps through the Stripe Dashboard without changing code.
Claimable sandboxes: Frictionless Stripe accounts for agents
Stripe introduced claimable sandboxes: fully functional test environments with working API keys that developers and agents can obtain without registration. It addresses signup friction when coding agents build payments integrations in minutes, and partners including Vercel, Replit, and Lovable requested provisioning without a sign-up flow. Claimable sandboxes are available through Stripe’s documentation, an API, and a CLI command designed for agents, and users can later claim them by creating or attaching a Stripe account. To handle 50,000+ sandboxes a day, Stripe pre-populates a Temporal-managed pool partitioned by country, use case, and platform, sets TTLs, and deletes unclaimed sandboxes. Security includes a dedicated API key type with rate limits, email requirements for CLI and API use, hCaptcha for docs, and a proof-of-work challenge for the CLI; claiming reparents the sandbox to a live-mode account and retains its API activity and objects.
Build richer Stripe apps with the right integration approach
Stripe’s App Marketplace now supports several extensibility primitives, and this guide explains how to choose among them based on the user’s task. Full-page apps provide dedicated Dashboard experiences, scripts run TypeScript at Stripe-defined extension points, remote functions connect Stripe to partner-hosted logic, custom objects store structured app data, and Stripe Workflows connects triggers and actions. The recommended approach is to start with the user’s task and choose the simplest combination that satisfies it. A CRM-matching example shows how a customer.created event can trigger a Workflows automation, a remote function can perform matching against the partner’s database, a custom object can persist the relationship, and a full-page app can handle exceptions. The guide advises not to add a primitive unless you can name the requirement it satisfies, and to measure success with KPIs such as the percentage of automatic matches.
Your AI agent can move money in Stripe - here's how to stay in control
Stripe’s MCP server grants AI agents the ability to build checkout pages, run reports, automate refunds, and send money via Stripe Treasury. To maintain control, Stripe offers two methods: connecting agents on your behalf via OAuth with mandatory human confirmation for sensitive live-mode actions, or assigning agents an independent identity with agent-tagged API keys governed by configurable approval rules. With OAuth, confirmation blocks refunds and payouts until you approve, and the agent must retry after confirmation. For independent agents, approval rules can require designated reviewers to approve actions based on conditions like amount exceeding $500, with default rules for refunds, payouts, and transfers. These layered controls—scoped credentials, confirmation, and two-party approval—let you decide which actions run automatically and which require oversight.
Go from idea to company without leaving your development workflow
Stripe Atlas now integrates company formation into development workflows through MCP and the Stripe CLI. With MCP, an AI agent such as Claude Code can explain Atlas, ask follow-up questions, collect company and founder details, and relay validation from Atlas in a conversational flow. The Stripe CLI tools plugin provides structured terminal prompts available directly from the terminal for the same process, and a coding agent can run the commands as a conversational layer. Progress is saved across MCP, CLI, and the Dashboard, so users can start with an agent, continue in the terminal, and finish identity verification and payment in the Dashboard without starting over. Atlas determines application requirements, validates all values, and maintains state; it handles incorporation, EIN retrieval, founder vesting with a one-year cliff, and 83(b) elections, supports Delaware C-corps and LLCs with multiple founders, and includes $2,500 in Stripe credits and over $50,000 in partner offers.
Scaling Radar: Fighting fraud with agent-assisted machine learning
Stripe Radar’s Shield model detects transaction fraud using network-wide signals. To improve recall, Stripe expanded training from roughly 800 million to 11 billion transactions, requiring optimizations that cut each epoch from 24 to 4.8 hours through streaming data loading, torch.compile, lower-precision arithmetic, concurrent execution of ResNeXt branches, and memory reductions. The larger dataset initially improved performance, but delayed fraud reports caused label immaturity, forcing a rollback because the model learned late-reported fraud as legitimate. Stripe built Agentic MLE, enabling AI agents to autonomously investigate failures, implement features, train models, and evaluate results using model explanations and prior experiment data. Using these agents, Stripe identified a training configuration change combining stochastic weight averaging at epoch 0 and shortening training to eight epochs, improving Shield’s recall by over 8% and estimating tens of millions in additional fraud prevention annually.
Run recurring jobs on Stripe without a cron server
Stripe Workflows now supports recurring schedule triggers, enabling automated tasks like notifying teams about past-due subscriptions without external cron servers. Users set schedules in the Dashboard, and Stripe runs the workflow at each scheduled time, following the local clock and handling daylight saving time. A walkthrough lists past-due subscriptions, uses a metadata key condition to skip already-notified ones, and sends Slack notifications via the installed Slack app. The workflow handles pagination; if an action fails, the loop stops and remaining items are picked up on the next run, with details showing which step failed. This eliminates the need for a separate server, secret key storage, and daylight saving time logic, putting calendar-based operations under the finance team’s control.
Fine-tuning LLMs for risk assessment
Stripe makes thousands of near real-time risk decisions every second, balancing fraud detection against false positives that disrupt legitimate businesses. Zero-shot prompting achieved 0.487 precision, domain-guided prompting 0.706, and human reviewers 0.790 at the same recall. The team applied supervised fine-tuning (SFT) to an open-weight 4B-parameter LLM, serializing features like card payments and account activity into text records, training it on labels, and deriving a continuous fraud score from the next-token probabilities normalized over two label tokens. SFT increased average precision by approximately 24% over domain-guided prompting and 70% over zero-shot prompting, and consistently outperformed XGBoost across multiple risk tasks. Linear probing of hidden states showed that SFT made benign signals more linearly decodable, with ROC-AUC improving from 0.583 to 0.642, indicating the model better recognizes legitimate business activity and reduces false positives.
Creating a whitelabeled connected account dashboard with embedded components
This tutorial explains how to build a whitelabeled connected account dashboard using Stripe Connect embedded components, eliminating the need to manually implement pagination, permissions, and state management. The example uses FurEver, a pet grooming SaaS platform, and integrates the ConnectPayments, ConnectPayouts, and ConnectNotificationBanner components for payments, refunds, dispute management, balance and payout views, and account enablement alerts. The server-side requires creating an account session with enabled components, while the frontend initializes ConnectComponentsProvider with the fetched client secret and publishable key. Platform user roles can be enforced by setting features such as refund_management based on admin status in the account session, automatically adjusting component behavior. The dashboard’s appearance matches the platform using the appearance API with variables for colors, fonts, and locale, and it receives automatic updates for new payment methods and compliance.
Stripe’s Payment Method Factory: Orchestrating agents for repeated, custom integrations
Stripe offers over 125 different payment methods globally, each requiring integrations that previously took up to six months because teams started from scratch. They hypothesized that reusable prompts with hardening could reduce effort, and a bake-off showed vanilla Claude Code took 20 days versus 4 days with their prompts. The resulting factory has created three new payment method integrations and migrated ten existing ones to a modern stack, reducing timelines from six months to two to six weeks. The factory also uses code-based orchestration, continuous knowledge loops where agents suggest prompt improvements, and agents testing their own code against sandbox environments. The factory’s approach has since been extended to Stripe’s tax and verification teams for building their own connectors.
How Stripe is designing Checkout for AI agents
Stripe implemented WebMCP on its Checkout UIs, which processes around 0.45% of global GDP, to optimize the buying experience for AI agents. Previously, agents relied on slow browser automation, consuming an average of 1.8 million tokens and 38.83 tool calls per transaction, taking over 2.5 minutes. WebMCP exposes MCP tools from the client side, allowing agents to execute actions like get_order_summary or fill_payment_form instead of interpreting the DOM. The implementation uses progressive tool disclosure, revealing only relevant tools; in evaluations across six models, agents using WebMCP consumed 42% fewer tokens, made 38% fewer tool calls, and completed checkout 39% faster. Stripe reused existing UI state and forms via imperative and declarative APIs, avoiding a separate agent-only code path and keeping human and agent experiences aligned.
Building custom financial reconciliation workflows with Stripe
The post examines how enterprises can replace SFTP-based financial reconciliation with Stripe’s reporting APIs. Stripe’s Reports API v2 and Query Run API provide SQL-based report customization, consistent schemas, API-key permissioning, audit trails, and event-driven completion notifications instead of fixed files and polling schedules. Using fictional retailer Galtee, the examples run payout queries across multiple Stripe accounts with an Organization secret key, joining transfers with balance_transactions and using a succeeded webhook to trigger retrieval. Further queries join charges to add presentment amounts and exchange rates, then use aggregation and a common table expression to itemize IC+ fees; the conclusion is that this supports an on-demand pipeline that evolves with business requirements.
Harbor: Stripe’s AI-assisted prototyping tool
Harbor addresses a gap in Stripe’s AI-assisted workflows: designers needed dynamic information to assess stripe.com designs, but could not always justify a full engineering prototype. Built initially by one engineer in about 40 days, it lets designers describe an idea and use Stripe design systems and realistic mock data to generate shareable, browser-based prototypes without understanding code. Its agent writes a multi-file source tree, while Drydock compiles and renders React and TypeScript in the viewer’s browser; the agent can inspect pages, interact with elements, switch viewports, and iterate before publishing a single snapshot. Since May 2026, more than 3,000 Stripes have created 12,000 prototypes, and Harbor now integrates with other AI tools through MCP and Drydock’s standalone rendering contract, although live data and prototype-scoped state remain future goals.
What if Stripe could work the way your business does
Stripe’s default financial infrastructure covers common payment, subscription, invoicing, and money-movement needs, but businesses may require custom rules, data models, or operational views. Rather than placing every customization behind webhooks and a separately managed server, Stripe extensibility moves logic, data, and user interface capabilities into Stripe through Scripts, Workflows, Custom Objects, and UI extensions. Scripts handle individual decisions such as TypeScript-based proration, while Workflows orchestrate event-driven or manually initiated sequences involving Stripe APIs, third-party integrations, and custom actions. Custom Objects add typed fields, validation, and relationships for concepts such as Rocket Rides’ Vehicles and Rentals, and UI extensions expose that information and business actions in the Dashboard. In the example, an End Rental action updates status, triggers inspection, and marks a vehicle available, connecting the three dimensions without requiring a separate operational system.
AI didn't write our SDK. It changed how we built it.
Stripe's extensibility SDK was built with AI involved across prototyping, architecture, implementation, and refinement, but the main change was to the development loop rather than code-generation speed. For a custom-object design, one engineer produced a working prototype, demo, and documentation site in roughly two days instead of an estimated two to three weeks, allowing the team to evaluate boundaries and reprioritize the feature for the next major launch. The team then used reviewed, detailed specifications and persistent domain guidance to delegate bounded work, including about twenty ESLint rules covering authoring constraints such as sandbox boundaries, imports, and type safety. AI also helped keep scripts, workflows, SDK generation, runtime enforcement, tooling, documentation, examples, and tests aligned, while human judgment remained responsible for abstractions and trade-offs. The post concludes that AI's leverage came from making more artifacts concrete earlier, enabling earlier feedback and a tighter deliverable.
Building a data plane from scratch: Stripe’s own high-performance distributed proxy
Stripe replaced Envoy in its service mesh after reliability, connection-cardinality, rollout-risk, and customization problems became increasingly difficult at its scale. Mesh-proxy, a Go proxy, implements HTTP/1.1 and HTTP/2, connects directly to Stripe’s service registry, and supports retries, hedging, rate limiting, and dynamic priority-based routing. Unlike Envoy’s worker-per-core model, it uses one read and one write goroutine per connection and multiplexes requests over a shared connection, reducing connection counts from one per worker to one per host. Load tests and deployment results showed about half the CPU under high load and roughly 50% lower latency, equivalent to around 3,000 days of cumulative inter-service latency saved daily. Direct registry integration also reduced unnecessary xDS updates, while custom Ruby balancing added 15–20% headroom before bursts overwhelm machines; Stripe is now pursuing anomaly detection and smart routing.
Reading the signals: Helping your AI-built payment integration understand business intent
AI agents can quickly produce Stripe payment flows that create a PaymentIntent, render the Payment Element, and pass an end-to-end demo, yet a correct implementation can still violate the business intent behind the money. The post argues that payment expertise and business decisions are often missing from integrations built from API references, causing silent failures such as terminal declines being retried, intents stuck in requires_action, uncaptured authorizations, restricted connected accounts, and asynchronous payments being refunded. It recommends defining business intent before configuring the PaymentIntent, then writing those rules into code comments, metadata, documented requirements, or custom objects. A verifier agent can check rules on every build, either through an agent skill, automated tests, or CI, while shared ownership remains with the human who decides what correct means.
From charging a blended rate to IC++: pass network costs to your connected accounts
Platforms using blended payment rates absorb interchange variance, which can reduce margins as card mix shifts toward premium rewards, corporate, and other high-interchange cards. Network cost passthrough, also called IC++, lets eligible Connect platforms pass interchange, scheme fees, and applicable adjustments to connected accounts at cost while keeping Stripe fees and platform markup separate. Eligibility requires IC+ pricing, platform-controlled pricing, enabled transfers, an appropriate Merchant of Record fund flow, and eligible geographies; passthrough can then be enabled in the Dashboard or through the API. The rollout also requires lower application fees, new network-cost reporting, and a pilot with clear communication before broader deployment.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.