<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Stripe Dot Dev Blog]]></title><description><![CDATA[Learn how to build web and mobile applications to accept payments, send payouts, and manage your business online with Stripe.]]></description><link>https://stripe.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 16:40:59 GMT</lastBuildDate><atom:link href="https://stripe.dev/blog/feed" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><item><title><![CDATA[Learning from explanations]]></title><description><![CDATA[Training on explanations helps Stripe make more precise risk assessments. We explain our two-stage SFT approach and how on-policy distillation restores the model’s ability to explain its decisions.]]></description><link>https://stripe.dev/blog/learning-from-explanations</link><guid isPermaLink="true">https://stripe.dev/blog/learning-from-explanations</guid><dc:creator><![CDATA[Hangzhi Guo]]></dc:creator><pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/learning-from-explanations/image10.png"/><link rel="preload" as="image" href="https://stripe.dev/images/learning-from-explanations/image13.png"/><link rel="preload" as="image" href="https://stripe.dev/images/learning-from-explanations/image11.png"/><link rel="preload" as="image" href="https://stripe.dev/images/learning-from-explanations/image7.png"/><link rel="preload" as="image" href="https://stripe.dev/images/learning-from-explanations/image12.png"/><h2>Why explanations matter</h2>
<p>In an <a href="https://stripe.dev/blog/training-llms-for-risk-assessment">earlier post</a>, we showed that supervised fine-tuning (SFT) on fraud labels improves risk assessment. But the review labels tell the model only whether an account is fraudulent, leaving the model to infer which evidence supports that assessment. Explanations make the reasoning explicit: which signals matter, why they matter, and how to weigh them when they conflict. Could teaching a model not just the answer, but the reasoning behind it, make its decisions better still?</p>
<p>The answer is yes, but with an important caveat. When we simply added explanations to the training target, effectively training the models on labels and explanations together, the models produced worse decisions than they did when trained on labels alone. That’s because standard SFT loss weights each target token equally, and the gradient is therefore dominated by the much longer explanation rather than the decision we ultimately care about.</p>
<p>That’s why we separate these objectives with two-stage SFT: first train on labels and explanations, then on labels alone. Our hypothesis was that the first stage would teach useful connections between evidence and decisions, while the second focuses training on predicting the correct label. This approach improved decision performance across multiple risk assessment tasks. In fraud review, it achieved 39% higher recall than label-only SFT at human-review precision.</p>
<p>The second stage introduced another tradeoff: better decisions, but poorer explanations. Because the second stage is trained to stop after the label, the model often skips the explanation entirely, and the explanations it does write are lower quality. To recover these capabilities, we use on-policy distillation (OPD), with the explanation-trained checkpoint guiding the model on its own generated responses. In our evaluation, OPD restored explanation quality while retaining the decision gains.</p>
<figure>
  <img src="https://stripe.dev/images/learning-from-explanations/image10.png" alt="Learn from labels and explanations, optimize decisions with label-only training, then recover explanation quality through on-policy distillation"/>
  <figcaption><strong>Figure 1.</strong> Learn from labels and explanations, optimize decisions with label-only training, then recover explanation quality through on-policy distillation.</figcaption>
</figure>
<h2>Synthesizing explanations with a teacher model</h2>
<p>To train on explanations, we first need them for every training sample. Human reviewers at Stripe explain their assessments in review notes. These notes can be valuable training examples: they connect evidence to a decision. However, their quality varies, and notes are not available for every account. To get a high-quality explanation for every account, we use a teacher model to synthesize explanations from serialized account records and review guidelines.</p>
<p>We use rejection sampling with privileged information to construct the explanation dataset. Given a serialized account record and the domain-guided prompt from the first post, the teacher generates both an estimated probability of fraud and a structured explanation. The explanation follows the guidelines the way a reviewer would. It identifies relevant evidence and connects it to a risk assessment. The teacher does not see the ground-truth label when generating its assessment. Instead, we use that label for rejection sampling to retain only examples where the teacher’s prediction agrees with it.</p>
<p>Figure 2 shows an example for the mock account from the first post. The teacher sees the serialized account record and the review guidelines, but not the label. Its assessment covers each dimension of the guidelines.</p>
<figure>
  <img src="https://stripe.dev/images/learning-from-explanations/image13.png" alt="The mock Good Bufo LLC merchant record from the first post goes into the teacher model, which is prompted with the review guidelines. A label check compares the teacher&#x27;s fraud probability with the ground-truth label, which is added only after the teacher runs. The resulting training target puts the label first, followed by an assessment for each review dimension."/>
  <figcaption><strong>Figure 2.</strong> Synthesizing a training target for a mock account. The teacher sees the account record and the review guidelines, but not the label. We keep the example because the teacher’s fraud probability agrees with the ground-truth label. The target puts that label first, followed by the teacher’s assessment of each review dimension.</figcaption>
</figure>
<h2>Two-stage SFT</h2>
<p>With an explanation for every account, we train the model in two stages. Stage 1 learns from labels and explanations together, and Stage 2 trains on labels alone.</p>
<h3>Stage 1: Knowledge distillation</h3>
<p>Knowledge distillation transfers the teacher’s domain-guided explanations into the student through SFT. Carrying forward the notation from the first post, let $$u_i = [y_i; e_i]$$ be the Stage 1 target containing the label $$y_i$$ followed by its explanation $$e_i$$, and let $$\mathcal{D}_E = {(s(x_i), u_i)}_i$$ be the explanation-supervision dataset. Stage 1 minimizes the expected loss between this target and the model’s prediction:</p>
<p>$$
\theta_1^* = \underset{\theta}{\arg\min}; \mathbb{E}_{(s(x_i), u_i) \sim \mathcal{D}<em>E} \left[\mathcal{L}\left(u_i, p</em>{\theta}!\left(\cdot \mid s(x_i)\right)\right)\right]
$$</p>
<p>Here $$\theta_1^*$$ is the Stage 1 model and $$\mathcal{L}$$ is the autoregressive cross-entropy loss over the label-plus-explanation target.</p>
<p>Unlike standard chain-of-thought setups, where reasoning precedes the answer, we place the label before the explanation so that the label-token probabilities used to compute the fraud score depend only on the account record. If the explanation comes first, the label distribution is also conditioned on the generated explanation. Once that explanation commits to a verdict, the fraud score can collapse toward 0 or 1, reflecting agreement with the verdict rather than uncertainty about the account. In addition, generating a long explanation before the label can degrade calibration as errors accumulate (<a href="https://arxiv.org/abs/2511.11966">Cao et al., 2025</a>).</p>
<h3>Stage 2: Decision calibration</h3>
<p>Stage 2 calibrates the model’s decisions through label-only training. It starts from $$\theta_1^*$$ and trains on a label-only dataset $$\mathcal{D}_L = {(s(x_i), y_i)}_i$$. As in the first post, the objective is the negative log-likelihood of the label:</p>
<p>$$
\theta_2^* = \underset{\theta}{\arg\min}; \mathbb{E}_{(s(x_i), y_i) \sim \mathcal{D}<em>L} \left[-\log p</em>{\theta}!\left(y_i \mid s(x_i)\right)\right]
$$</p>
<h3>Why two stages?</h3>
<p>Because standard SFT spreads the gradient across thousands of explanation tokens, joint training dilutes the decision signal (Figure 3a): the loss gives explanation generation far more weight than the decision we ultimately care about. Two-stage SFT lets us use richer supervision and then focus training on decision accuracy. Knowledge distillation expands each training target from a single label into thousands of tokens connecting how evidence in an account record supports that decision. We hypothesize that the knowledge distillation stage builds useful internal representations from this dense supervision, which Stage 2 then refines through label-only training so we optimize directly for decision accuracy without explanation tokens dominating the objective. Ultimately, two-stage training trades extra training compute to extract richer signals from existing data.</p>
<p>Figure 3b compares label-only SFT, joint label-and-explanation SFT (Stage 1 only), and two-stage SFT on the same cohort. At human-review precision, two-stage SFT achieves 39% higher recall than label-only SFT, while joint training falls below label-only SFT. Explanations improve decision performance when label-only training follows them, but not when the model learns labels and explanations together.</p>
<figure>
  <img src="https://stripe.dev/images/learning-from-explanations/image11.png" alt="Left: one decision token next to a grid of 1,000 explanation tokens, shaded as evidence and reasoning or as wording and formatting, with a bar showing each token type&#x27;s share of the loss. The decision token gets 0.1%. Right: precision-recall curves for two-stage SFT, label-only SFT, and joint label-and-explanation SFT"/>
  <figcaption><strong>Figure 3.</strong> (a) Target tokens for one account record with a 1,000-token explanation. Tokens differ in what they say about the decision: some cite evidence or reasoning, while many only carry wording and formatting. The loss weighs them all equally, so the decision token gets 0.1% of the training signal. The split between token types is illustrative. (b) Precision-recall curves for two-stage SFT, label-only SFT, and joint label-and-explanation SFT on the same cohort. The arrow marks the recall gain of two-stage SFT over label-only SFT at human-review precision.</figcaption>
</figure>
<h3>Scaling explanation supervision</h3>
<p>We evaluate how risk assessment performance scales with explanation supervision on two risk assessment tasks: credit decisions and fraud decisions. For each task, we increase the sample size of explanations in Stage 1 and evaluate decision PR-AUC after label-only training in Stage 2.</p>
<p>Figure 4 shows that PR-AUC of both risk assessment tasks increases when the Stage 1 dataset size increases. Compared to label-only SFT, credit decision PR-AUC improves by 9.8% with 15,000 Stage 1 examples, and fraud decision PR-AUC improves by 3.2% with 25,000 examples. This result highlights that more explanation supervision in Stage 1 improves the final classifier, even after Stage 2 trains only on labels.</p>
<figure>
  <img src="https://stripe.dev/images/learning-from-explanations/image7.png" alt="PR-AUC as the Stage 1 training set grows, for the credit decision up to 15,000 examples and for the fraud decision up to 25,000 examples. Each curve uses its own scale. Both curves rise at every evaluated size."/>
  <figcaption><strong>Figure 4.</strong> PR-AUC as the Stage 1 training set grows. The y-axis scales each decision separately. Each curve runs from its PR-AUC without Stage 1 data at the bottom to its PR-AUC with the largest Stage 1 set at the top. Both decisions improve monotonically at every evaluated data size.</figcaption>
</figure>
<h3>Explanations transfer across tasks</h3>
<p>Next, we evaluate how explanations transfer across tasks. We compare three training setups: label-only SFT, two-stage SFT with explanations from the target task, and two-stage SFT with explanations from another task. All three train on the target task’s labels in Stage 2.</p>
<p>For cross-task training, we initialize Stage 2 from a checkpoint trained on another task&#x27;s explanations, rather than explanations specific to the target task. On both credit and fraud decisions, this approach captures most of the improvement from same-task explanations. For credit decisions, PR-AUC rises from 0.578 with label-only SFT to 0.631 with cross-task explanations, compared with 0.635 with same-task explanations. For fraud decisions, PR-AUC rises from 0.710 to 0.739, compared with 0.747.</p>
<p>These results suggest that Stage 1 teaches connections between evidence and decisions that are useful beyond the task on which they were learned. An explanation-trained checkpoint may therefore provide a useful starting point for a new risk assessment task, even before task-specific explanations are available.</p>

























<table><thead><tr><th><strong>Stage 1 training</strong></th><th><strong>Credit Decisions</strong></th><th><strong>Fraud Decisions</strong></th></tr></thead><tbody><tr><td>No Stage 1</td><td>0.578</td><td>0.710</td></tr><tr><td>Stage 1 on another task</td><td>0.631</td><td>0.739</td></tr><tr><td>Stage 1 on the same task</td><td>0.635</td><td>0.747</td></tr></tbody></table>
<h2>Recovering explanations with on-policy distillation</h2>
<p>The gains from Stage 2 come with a cost. The model often fails to generate explanations, and the explanations it does produce are low quality. Explanations helped the model learn to make better decisions, but label-only training weakens its ability to state the connections between evidence and a decision. We still need those explanations to inspect an assessment or investigate a mistake. So how can we restore reliable explanations while keeping the decision gains from Stage 2?</p>
<h3>Stage 3: On-policy distillation</h3>
<p>To restore the explanation capability, we apply on-policy distillation (OPD) as Stage 3 of training. In this stage, we use the Stage 1 model as a frozen teacher and initialize the student from the Stage 2 checkpoint. Given a serialized account record $$s(x_i)$$, the student samples a response $$z=(z_1,\ldots,z_T)$$. The teacher and student then each score every sampled token, conditioned on the same record and the same student-generated prefix $$z_{&lt;t}$$. The per-token reward is the difference between their log probabilities:</p>
<p>$$
r_t = \log p_{\mathrm{teacher}}!\left(z_t \mid s(x_i), z_{&lt;t}\right) - \log p_{\mathrm{student}}!\left(z_t \mid s(x_i), z_{&lt;t}\right)
$$</p>
<p>The reward is negative wherever the student is more confident in a token than the teacher. Maximizing it minimizes the reverse KL divergence, $$D_{\mathrm{KL}}\left(p_{\mathrm{student}} ,|, p_{\mathrm{teacher}}\right)$$, over the student&#x27;s own responses. After each update, we sample fresh responses from the updated student and repeat. Because the training data comes from the student&#x27;s current behavior, the method is on-policy (<a href="https://thinkingmachines.ai/blog/on-policy-distillation/">Thinking Machines Lab, 2025</a>).</p>
<p>OPD can help recover explanations in two ways. Reverse KL discourages the student from assigning high probability to responses that the teacher considers unlikely. This mode-seeking behavior encourages the student to concentrate on responses supported by the teacher (<a href="https://arxiv.org/abs/2306.08543">Gu et al., 2023</a>). On-policy sampling also reduces exposure bias. The student learns to continue from its own generated prefixes, including mistakes, as it must at inference time (<a href="https://arxiv.org/abs/2306.13649">Agarwal et al., 2023</a>). Together, these mechanisms align both the student’s predictions and its training contexts with the behavior we want to recover.</p>
<figure>
  <img src="https://stripe.dev/images/learning-from-explanations/image12.png" alt="Off-policy distillation trains the student on teacher-generated tokens with forward KL. On-policy distillation samples tokens from the student, and the teacher scores each token to give a token-level reward under reverse KL"/>
  <figcaption><strong>Figure 5.</strong> Off-policy distillation (SFT) and on-policy distillation. In SFT, the teacher generates the response and the student learns to match it. In OPD, the student generates the response, and the frozen teacher scores each token to give a token-level reward.</figcaption>
</figure>
<h3>OPD restores explanation quality</h3>
<p>We evaluate explanations using two measures. Rubric Score measures the quality of each explanation against an internal evaluation rubric. Review Alignment compares the model’s explanation with the human review of the same account. It measures how closely they agree in their interpretation of the evidence. The two measures use different scales.</p>

























<table><thead><tr><th><strong>Model</strong></th><th><strong>Rubric Score</strong></th><th><strong>Review Alignment</strong></th></tr></thead><tbody><tr><td>Stage 1: Knowledge distillation</td><td>0.677</td><td>37.83</td></tr><tr><td>Stage 2: Decision calibration</td><td>0.191</td><td>10.92</td></tr><tr><td>Stage 3: On-policy distillation</td><td><strong>0.835</strong></td><td><strong>41.13</strong></td></tr></tbody></table>
<p>OPD recovers the explanation capability that Stage 2 weakened, and its explanations even score higher than those of the Stage 1 teacher on both measures. This improvement stems from on-policy training: by learning from the student&#x27;s own rollouts rather than teacher-forced prefixes, Stage 3 overcomes the exposure bias inherent in Stage 1&#x27;s off-policy SFT.</p>
<h3>OPD preserves decision performance</h3>
<p>Recovering explanations is useful only if we keep the decision gains from Stage 2. We therefore check whether distilling from the Stage 1 teacher lowers decision performance.</p>
<p>The table below compares Fraud Review decision performance across the three stages, at human-review precision. OPD does not lower recall; it modestly improves on Stage 2, and both stages exceed the Stage 1 teacher. Together with the explanation results, this suggests that OPD can restore the ability to explain decisions without losing the accuracy gained from label-only training.</p>





















<table><thead><tr><th><strong>Model</strong></th><th><strong>Recall @ Human-Review Precision</strong></th></tr></thead><tbody><tr><td>Stage 1: Knowledge distillation</td><td>0.471</td></tr><tr><td>Stage 2: Decision calibration</td><td>0.539</td></tr><tr><td>Stage 3: On-policy distillation</td><td><strong>0.547</strong></td></tr></tbody></table>
<h2>Improving decisions and explanations</h2>
<p>Labels only tell a model which answer is correct, while explanations provide supervision about which evidence matters and how to interpret it. This richer signal enables the model to learn representations that connect evidence and decisions. Across multiple risk assessment tasks, we show that learning from explanations improves decision performance, with gains that scale with explanation data and transfer to adjacent tasks. On-policy distillation restores the explanation quality lost due to catastrophic forgetting during label-only SFT, while preserving those decision gains.</p>]]></content:encoded></item><item><title><![CDATA[Stripe evals: Measuring real-world coding agent performance]]></title><description><![CDATA[We want developers building with agents to start on the best Stripe setup, and that begins with seeing where agents fall short today. So we built Stripe evals to measure that, and to identify ways to steer agents toward better integrations.]]></description><link>https://stripe.dev/blog/stripe-integration-evals-methodology</link><guid isPermaLink="true">https://stripe.dev/blog/stripe-integration-evals-methodology</guid><dc:creator><![CDATA[Kiran Prasad]]></dc:creator><pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<p>Integration choices affect how much value a business gets from Stripe. Choosing current integration patterns helps businesses access new capabilities with less custom code and can reduce future migration work. Building an integration well also means handling payment failures, subscription changes, and webhook events.</p>
<p>As developers build with coding agents, we have <a href="https://stripe.com/blog/can-ai-agents-build-real-stripe-integrations">observed</a> that agents bias towards older APIs that are more prevalent in their pretraining corpus, miss key features, and hallucinate. Existing coding benchmarks don&#x27;t catch this: they check whether the code passes deterministic checks, not whether the API integration is correct. We want developers building with agents to start on the best Stripe setup, and that begins with seeing where agents fall short today. So we built Stripe evals to measure that, and to identify ways to steer agents toward better integrations, through capabilities like the <a href="https://docs.stripe.com/agents/plugin">Stripe agent plugin</a>.</p>
<p>Stripe evals measure how well coding agents build high-quality integrations given realistic, well-specified scenarios driven by a roleplaying agent. We ran 69 scenarios across one-time payments, subscriptions, and Connect (marketplaces and platforms), on 14 model and harness pairs, both with and without the Stripe agent plugin. The scenarios include tasks such as building a hosted checkout, implementing metered billing, managing per-seat subscriptions, and splitting marketplace payments.</p>
<p>The plugin helps. All 14 coding agents scored higher with it, by roughly 3 to 8 percentage points, and web searches fell 96% as models relied on trusted guidance. Models also behave differently from one another: Fable 5.1 made 53% more tool calls with the plugin, while Gemini 3.8 Flash made 26% fewer. While the headline numbers are high, a strict pass rate requiring all necessary criteria to pass drops the average score across all agents from 78.1% to 29.4%.</p>
<p>We are also publishing our Stripe <a href="https://github.com/stripe/forge">benchmark and eval framework</a>. We will maintain the eval harness and update the results on an ongoing basis with new models, cases, and features.</p>
<h2>Detailed results</h2>
<p>The results below evaluate the coding agents on our 69 public cases (19 Connect, 24 payments, and 26 Subscriptions) over 2 runs.</p>
<h3>Table 1: Detailed score results</h3>
<table class="c49"><thead><tr class="c37"><td class="c42" colSpan="1" rowSpan="1"><p class="c6"><span class="c19">Model</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c6"><span class="c19">Harness</span></p></td><td class="c66" colSpan="1" rowSpan="1"><p class="c6"><span class="c19">Average score: no plugin → plugin</span></p></td><td class="c81" colSpan="1" rowSpan="1"><p class="c2"><span class="c19 c58">Score change</span></p></td><td class="c9" colSpan="1" rowSpan="1"><p class="c2"><span class="c19">Strict pass rate: no plugin → plugin</span></p></td><td class="c47" colSpan="1" rowSpan="1"><p class="c2"><span class="c19">Cost per run ($): no plugin → plugin</span></p></td><td class="c47" colSpan="1" rowSpan="1"><p class="c2"><span class="c19">Minutes per eval: no plugin → plugin</span></p></td></tr></thead><tbody><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Haiku 5.5</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Claude Code</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">73.5% → 76.2%</span></p></td><td class="c50 dataPoor" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+2.7%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">23.5% → 30.9%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">0.08 → 0.09</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">8.3 → 7.8</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Sonnet 5.5</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Claude Code</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">78.0% → 82.6%</span></p></td><td class="c29 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+4.6%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">29.4% → 33.1%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">1.07 → 1.16</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">8.1 → 7.3</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Opus 5.5</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Claude Code</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">83.5% → 86.2%</span></p></td><td class="c50 dataPoor" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+2.7%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">35.3% → 36.0%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">2.77 → 3.15</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">12.4 → 12.4</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Fable 5.1</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Claude Code</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">79.5% → 84.6%</span></p></td><td class="c29 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+5.1%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">25.4% → 36.4%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">5.02 → 6.13</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">15.7 → 19.6</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Fable 5.2</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Claude Code</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">81.1% → 85.2%</span></p></td><td class="c50 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+4.1%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">28.4% → 43.2%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">5.76 → 5.35</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">15.2 → 15.1</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">GPT-6 Luna</span></p></td><td class="c80" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Codex</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">72.0% → 79.1%</span></p></td><td class="c29 dataGood" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+7.1%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">17.3% → 29.1%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">0.05 → 0.07</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">7.2 → 8.8</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">GPT-6.1 Sol</span></p></td><td class="c80" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Codex</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">85.6% → 89.6%</span></p></td><td class="c50 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+4.0%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">39.0% → 50.7%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">0.51 → 0.61</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">6.1 → 6.5</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">GPT-6 Astra</span></p></td><td class="c80" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Codex</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">85.5% → 90.0%</span></p></td><td class="c29 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+4.5%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">41.9% → 52.9%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">2.93 → 3.63</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">6.2 → 7.8</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Gemini 4 Argon</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">74.3% → 77.6%</span></p></td><td class="c50 dataPoor" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+3.3%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">20.6% → 31.6%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">1.64 → 3.86</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">8.1 → 9.3</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Gemini 3.8 Flash</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">64.8% → 72.7%</span></p></td><td class="c29 dataGood" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+7.9%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">11.2% → 21.6%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">2.21 → 2.67</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">11.6 → 9.9</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Grok 4.7</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">72.0% → 75.8%</span></p></td><td class="c50 dataPoor" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+3.8%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">21.3% → 26.5%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">0.70 → 1.37</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">5.1 → 5.3</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Kimi K3</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">69.2% → 75.0%</span></p></td><td class="c29 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+5.8%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">21.1% → 25.0%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">1.83 → 1.99</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">14.8 → 13.3</span></p></td></tr><tr class="c25"><td class="c7" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">GLM 5.3</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c48" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">68.1% → 72.6%</span></p></td><td class="c50 dataFair" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+4.5%</span></p></td><td class="c64" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">18.5% → 21.8%</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">2.26 → 2.42</span></p></td><td class="c54" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">15.7 → 14.7</span></p></td></tr><tr class="c25"><td class="c22" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">Minimax M3.1 Flash</span></p></td><td class="c45" colSpan="1" rowSpan="1"><p class="c6"><span class="c3">OpenCode</span></p></td><td class="c62" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">73.4% → 80.8%</span></p></td><td class="c29 dataGood" colSpan="1" rowSpan="1"><p class="c2"><span class="c38">+7.4%</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">21.5% → 28.6%</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">0.49 → 0.65</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c2"><span class="c3">28.2 → 27.9</span></p></td></tr></tbody></table>
<p><em>*This is an aggregation across the Payments, Connect, and Subscriptions cases, which have differing model performance, and so cross-model comparisons should be contextualized with Table 3.</em></p>
<h4>Plugin helps model performance</h4>
<p>In our evals, all 14 model and harness pairs scored higher with the plugin, improving by roughly 3 to 8 percentage points overall. The plugin also helped reduce outdated parameter references from 7% to 1.3% of the parameters in API calls. For example, without the plugin GPT 6.1 Sol on the payments-mobile-physical-goods scenario used a <a href="https://docs.stripe.com/changelog/endive/2026-09-30/removes-the-payment-method-types-parameter-from-payment-intents-and-setup-intents">recently removed parameter</a> <code>payment_method_types: [&#x27;card&#x27;]</code>, but with the plugin the model writes the correct <code>automatic_payment_methods: { enabled: true }</code>, enabling <a href="https://docs.stripe.com/payments/payment-methods/dynamic-payment-methods">Dynamic Payment Methods</a>.</p>
<h4>Test volume decrease from the plugin</h4>
<p>With the plugin, coding agents wrote about 40% fewer test lines and ran tests in 42% of evals vs 53% without the plugin. This doesn’t mean fewer tests improved performance, but rather more authoritative information from the plugin reduced the need for excessive checking of written code.</p>
<h3>Table 2: Tool calls</h3>
<table class="c53"><thead><tr class="c60"><td class="c38" colSpan="1" rowSpan="1"><p class="c0"><span class="c18 c27">Model</span></p></td><td class="c69" colSpan="1" rowSpan="1"><p class="c0"><span class="c18 c27">Harness</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">Web searches per eval: no plugin → plugin</span></p></td><td class="c31" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">Search change</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">Page fetches per eval: no plugin → plugin</span></p></td><td class="c31" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">Fetch change</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">All tool calls per eval: no plugin → plugin</span></p></td><td class="c24" colSpan="1" rowSpan="1"><p class="c9"><span class="c18 c27">Tool call change</span></p></td></tr></thead><tbody><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c18">All coding agents (pooled)</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c18">All</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">1.26 → 0.05</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">−96%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">4.84 → 1.78</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">−63%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">59.4 → 61.4</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c18">+3%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Opus 5.5</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.36 → 0.07</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−82%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.14 → 1.92</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−54%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">59.9 → 61.3</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+2%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Sonnet 5.5</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.82 → 0.02</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−97%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.67 → 1.28</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−73%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">39.0 → 42.8</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+10%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Haiku 5.5</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">1.35 → 0.11</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−92%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.22 → 1.37</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−68%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">45.4 → 45.0</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−1%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Fable 5.1</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.40 → 0.03</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−92%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">7.26 → 2.74</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−62%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">35.8 → 54.8</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+53%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Fable 5.2</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.66 → 0.03</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−95%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">8.99 → 4.13</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−54%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">55.6 → 60.7</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+9%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6.1 Sol</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">1.31 → 0.01</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−99%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">3.99 → 0.17</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−96%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">28.8 → 33.6</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+17%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6 Astra</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">1.28 → 0.05</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−96%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.44 → 0.33</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−92%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">28.5 → 33.5</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+17%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6 Luna</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.06 → 0.11</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−97%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">3.49 → 0.00</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−100%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">52.4 → 52.8</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+1%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Gemini 4 Argon</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.17 → 1.99</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">12× more</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">18.7 → 33.7</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+80%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Gemini 3.8 Flash</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">0.17 → 0.12</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−31%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">47.1 → 34.6</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−26%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Grok 4.7</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">3.01 → 3.13</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+4%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">40.7 → 57.7</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+42%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Kimi K3</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">1.62 → 0.71</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−56%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">79.6 → 75.9</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−5%</span></p></td></tr><tr class="c8"><td class="c48" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GLM 5.3</span></p></td><td class="c39" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">4.01 → 1.29</span></p></td><td class="c5" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−68%</span></p></td><td class="c19" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">117.0 → 106.4</span></p></td><td class="c6" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−9%</span></p></td></tr><tr class="c8"><td class="c36" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Minimax M3.1 Flash</span></p></td><td class="c46" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">not measured</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">22.92 → 8.77</span></p></td><td class="c35" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">−62%</span></p></td><td class="c15" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">236.1 → 239.5</span></p></td><td class="c44" colSpan="1" rowSpan="1"><p class="c9"><span class="c2">+1%</span></p></td></tr></tbody></table>
<p><em>*OpenCode used web search via OpenRouter, which we cannot directly observe.</em></p>
<h4>Agents replace web search for the plugin</h4>
<p>The plugin includes MCP tool calls (such as doc search, implementation planner) and skills. Generally, the plugin reduces the need for about 1.2 web searches per eval. Web fetches (the way agents pull web content from a URL) also decrease by about 3 fetches per eval.</p>
<p>Yet not every model behaves the same. Interestingly, Argon and Grok fetch more when they’re using the plugin. They tend to fetch particular pages referenced in tool results or in skills.</p>
<h4>Strict grading drastically reduces evaluation metrics</h4>
<p>To measure if an integration satisfies all key requirements for good quality, we also report the strict pass rate for the required criteria (<a href="https://stripe.dev/blog/stripe-integration-evals-methodology#scoring-and-reporting">details in the scoring and reporting section below</a>). In this reporting, the average model performance drops precipitously from 78.1% to 29.4% for the same required criteria. This indicates many of the models create almost correct implementations and have difficulty with the last mile. For example, in the payments-radar-review-fulfillment scenario, Opus 5.5 doesn’t check whether an order is eligible for fulfillment, only <code>PaymentIntent.status === &#x27;succeeded&#x27;</code>, which can allow orders to ship after refund or dispute.</p>
<h3>Table 3: Scenario categories</h3>
<table class="c53"><thead><tr class="c8"><td class="c1" colSpan="1" rowSpan="2"><p class="c9"><span class="c18 c27">Model</span></p></td><td class="c1" colSpan="1" rowSpan="2"><p class="c9"><span class="c18 c27 c45">Harness</span></p></td><td class="c63" colSpan="2" rowSpan="1"><p class="c9"><span class="c18 c27">Payments</span></p></td><td class="c63" colSpan="2" rowSpan="1"><p class="c9"><span class="c18 c27">Subscriptions</span></p></td><td class="c63" colSpan="2" rowSpan="1"><p class="c9"><span class="c18 c27">Connect</span></p></td></tr><tr class="c8"><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c66 c27">No plugin</span></p></td><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c66 c27">Plugin</span></p></td><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c27 c66">No plugin</span></p></td><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c66 c27">Plugin</span></p></td><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c66 c27">No plugin</span></p></td><td class="c1" colSpan="1" rowSpan="1"><p class="c9"><span class="c66 c27">Plugin</span></p></td></tr></thead><tbody><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Fable 5.2</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">88%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">90%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">69%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">73%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">89%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">97%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Fable 5.1</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">84%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">87%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">71%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">73%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">85%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">97%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Opus 5.5</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">87%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">89%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">76%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">78%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">89%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">94%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Sonnet 5.5</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">84%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">90%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">68%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">70%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">85%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">91%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Haiku 5.5</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Claude Code</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">82%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">86%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">62%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">63%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">78%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">82%</span></p></td></tr><tr class="c8"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6 Astra</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">90%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">96%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">82%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">83%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">85%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">92%</span></p></td></tr><tr class="c8"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6.1 Sol</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">90%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">94%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">80%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c18">84%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">87%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">91%</span></p></td></tr><tr class="c8"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GPT-6 Luna</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Codex</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">80%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">89%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">62%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">67%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">75%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">83%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Minimax M3.1 Flash</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">79%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">88%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">60%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">66%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">88%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">92%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Gemini 4 Argon</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">77%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">79%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">63%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">64%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">86%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">95%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Gemini 3.8 Flash</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">70%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">78%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">51%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">57%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">77%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">88%</span></p></td></tr><tr class="c8"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Grok 4.7</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">76%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">81%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">60%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">60%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">83%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">90%</span></p></td></tr><tr class="c58"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">Kimi K3</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">76%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">80%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">55%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">59%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">80%</span></p></td><td class="c12 dataGood" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">91%</span></p></td></tr><tr class="c8"><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">GLM 5.3</span></p></td><td class="c12" colSpan="1" rowSpan="1"><p class="c0"><span class="c2">OpenCode</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">75%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">77%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">55%</span></p></td><td class="c12 dataPoor" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">56%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">77%</span></p></td><td class="c12 dataFair" colSpan="1" rowSpan="1"><p class="c7"><span class="c2">89%</span></p></td></tr></tbody></table>
<p><em>*There were significant differences in agent performance across the scenario categories: one-time payments, subscriptions, and Connect. Coding agents that scored higher in one-time payments and subscriptions did not score the highest for Connect. Connect scenarios that involved more scenario-specific integration decisions also saw a larger gain from the use of plugins compared to the other categories.</em></p>
<h2>Methodology</h2>
<h3>Coding agents</h3>
<p>We chose three coding harnesses: Claude Code, Codex, and OpenCode, and a sampling of models including open-weight models.</p>
<h3>Stripe agent plugin</h3>
<p>The <a href="https://docs.stripe.com/agents/plugin">Stripe agent plugin</a> gives coding agents Stripe-authored skills and access to tools through our Model Context Protocol (MCP) server. Skills provide integration best practices, while tools such as <code>stripe_implementation_planner</code> and <code>search_stripe_documentation</code> supply implementation guidance and current documentation. API search and details tools help agents look up supported operations and parameters.</p>
<h3>Web search</h3>
<p>To best simulate the developer experience, we provided the most native web search available to the coding harness. For all Claude Code models and Codex models we used the web search the harnesses provide. For OpenCode, we used the OpenRouter <a href="https://openrouter.ai/docs/guides/features/server-tools/web-search">Web Search server tool</a>, which tries to use native provider search if available or falls back to Exa.</p>
<h3>Using an LLM to proxy a human with latent needs</h3>
<p>Developers typically start with a goal, not complete requirements, and guide coding agents through iterative feedback and key decisions. To evaluate these interactions, we use a secondary agent to role-play the developer without teaching the coding agent how to pass the benchmark.</p>
<p>The roleplayer is instructed to steer the coding agent towards the desired product outcome but not assume expertise in Stripe APIs. It asks the coding agent to investigate and make all integration decisions. It is also instructed not to write code, echo the agent’s answer, or expand into generic application concerns.</p>
<p>Just as a human developer has a latent set of needs when coming to the coding agent, our roleplayer derives a frozen, private set of needs from the initial prompt and context prior to the conversation. For example, a user building a platform that charges a flat $0.50 per payment may want to understand the unit economics even if not asked upfront. At the end of each turn, the roleplaying agent decides if all the needs are met. The roleplaying agent normally identifies two to four needs, with a maximum of six. On each turn, the roleplayer selects one unresolved need and turns it into a follow-up question. It never exposes the complete list.</p>
<p>The roleplayer agent only stops during normal operation when no needs remain or if a preset limit on turns is reached. This keeps the agent on track like a focused developer would be, yet allows for natural flexibility if a small detour is required for the completion of the task. The harness records the needs and their progression for auditability, but that private state is never sent to the coding agent or the judges.</p>
<h3>Evaluating agents in a realistic loop</h3>
<p>Coding agents were run headlessly in an isolated workspace with access to their normal coding tools and web search. They could inspect the repository, write files, run commands, and revise their implementation over multiple turns interacting with the roleplayer.</p>
<p>We ran each scenario with paired configurations:</p>
<ul>
<li>Without the Stripe plugin</li>
<li>With the Stripe plugin</li>
</ul>
<p>The task, opening message, coding harness, and model were fixed.</p>
<h3>Judging observable evidence</h3>
<p>The evidence is judged against a scenario-specific rubric with multiple criteria. Not all criteria are of equal importance. To capture this, we introduce terminology from <a href="https://www.rfc-editor.org/info/rfc2119/">RFC 2119</a>, to have criteria either be a MUST (required for all valid integrations), or a SHOULD (a recommendation).</p>
<p>We grade each criterion separately rather than asking a single judge to assess them all, preventing one criterion from biasing scores on others. This makes failures easier to interpret and judgements simpler, allowing relatively weaker models to judge reliably and without regression as we scale the number of criteria.</p>
<p>Each judgement uses two evidence sources:</p>
<ul>
<li>The visible transcript. This is a parsed native trajectory (user and agent steps directly from the agent sessions) without timestamps, extra metadata, subagent sessions, etc. In the case of an error with parsing, we fall back to a runner record of the conversation.</li>
<li>The resulting workspace. Files written during the run remain in the host directory mounted into the agent’s environment. The judge inspects a snapshot of what the agent produced.</li>
</ul>
<p>What is excluded:</p>
<ul>
<li>Workspace collection is bounded and excludes dependencies, generated directories, repository metadata, and binary files.</li>
<li>Model thinking: evaluation is based on observable behavior and artifacts, not private reasoning.</li>
</ul>
<p>Judges returned structured judgements, using a five candidate <a href="https://arxiv.org/abs/2510.01171">verbalized sampling</a> to expose alternative readings of each criterion. A criterion succeeds only when the coding agent’s response or workspace provides the required evidence.</p>
<h3>Scoring and reporting</h3>
<p>The evaluation runs 69 cases x 2 repetitions x 2 arms = 276 total runs per coding agent. Results roll up into three categories of varying scenarios each (24 one-time payments, 26 subscriptions, and 19 Connect platforms).</p>
<p>The headline reported metric - integration success rate - is the mean criteria success rate (for both MUST and SHOULD). A scenario with 7 MUST criteria and 1 SHOULD where a run satisfies 6 scores 75%. The strict pass rate, which requires all MUST criteria to pass (binary per case), is more indicative of developer success, but it is sensitive to any data or judgement errors. This is the cause of <a href="https://openreview.net/pdf?id=ITw9edRDlD">incorrect conclusions around emergent phenomena</a>.</p>
<p>We used GPT 6.1 Sol for both the roleplaying model and the judge model across all evaluations to ensure judging consistency. To measure any judge bias (e.g. Sol potentially favoring OpenAI models), we ran a probe with Opus as the judge, but the results showed no bias. Rather, the scores moved in lockstep with Opus being a more lenient judge uniformly. All models were run with the default effort setting.</p>
<p>As a practical matter, there is a 45-minute timeout per case, which is treated as an error. Errors are not included in the score calculation, because it is plausible that some of the models when given even more time would successfully solve the cases.</p>
<h3>What this benchmark does not measure</h3>
<p>We plan to address the following gaps in future work:</p>
<ul>
<li>Runtime verification. A well-shaped but non-functional integration can score full marks. The benchmark asserts correct specification, not correct execution.</li>
<li>Product recommendation quality. We’re not looking at whether an agent recommends the right product.</li>
<li>Long-horizon maintenance. The benchmark measures initial integration quality, not how well code ages or adapts to API changes.</li>
</ul>
<h2>Conclusion and future work</h2>
<p>This work shows agent behavior is highly conditional on which model is driving and which tools are present. Coding harnesses when paired with frontier models can produce working end-to-end Stripe integrations, although they may not necessarily follow all best practices. Agents fare better when steered by our plugin, although they do not perform uniformly across business models (e.g., one-time payments vs. subscriptions vs. marketplace payments). This initial benchmark helps us understand how different coding agents and models integrate Stripe, and provides guidance on how we can steer them better to achieve better outcomes for businesses using Stripe.</p>
<p>In our attempt to build in the open, we are releasing this benchmark and the <a href="https://github.com/stripe/forge">Forge eval harness</a>. Recognizing there is always more work to be done, we will add more test cases soon, explore a broader mix of harnesses and models, continuously update Forge, and periodically publish results.</p>
<p>If you’re interested in understanding what’s possible with AI applications, we’re hiring! Check out our <a href="https://stripe.com/careers/search?query=Engineer">engineering jobs</a>.</p>]]></content:encoded></item><item><title><![CDATA[Billing customizations: change how discounts are applied]]></title><description><![CDATA[Standard Stripe coupons apply a fixed amount or percent off a product. When your discounting strategy is more specific - price-targeted offers, BOGO, interval-aware discounts, or caps that follow your prices - you can customize discount calculation in Billing. Start with dashboard-authored coupons, or write a TypeScript script that runs during the discount calculation extension point.]]></description><link>https://stripe.dev/blog/billing-customizations-change-how-discounts-are-applied</link><guid isPermaLink="true">https://stripe.dev/blog/billing-customizations-change-how-discounts-are-applied</guid><dc:creator><![CDATA[Anjali Gola]]></dc:creator><pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image2.jpg"/><link rel="preload" as="image" href="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image3.jpg"/><p>Developers using Stripe implement advanced marketing strategies that don&#x27;t always fit the standard amount-off or percent-off coupons supported by Stripe Billing. Previously, this meant managing multiple coupons on your own or restructuring your Stripe product catalog so that you could apply coupons to selected products. Now, Stripe provides new ways to <a href="https://docs.stripe.com/billing/scripts/discount-calculation">customize discount calculation</a> so that you can implement new discounting strategies with minimal work and maintenance commitment.</p>
<p>The following discount customizations are available with just a <a href="https://docs.stripe.com/billing/scripts/stripe-authored/discount-calculation#create-a-custom-coupon">few clicks in the dashboard</a>, without writing any code:</p>
<ul>
<li>Fixed percent off up to a maximum</li>
<li>Price-targeted amount off</li>
<li>Price-targeted percent off</li>
<li>Buy one, get one (BOGO)</li>
</ul>
<p>You can customize these even further by writing your own script for the discount calculation extension point. Extension points are designated places in Stripe where you can run custom logic. The discount calculation extension point lets you replace Stripe&#x27;s discount calculation logic with your custom logic. Writing this logic as a script extension, a TypeScript script that runs in Stripe&#x27;s runtime, makes it readable, testable, and easy to maintain.</p>
<p>Here are some scenarios where this customization can be useful to you:</p>
<h4>Discount by price instead of product</h4>
<p>Standard coupons target products. If your product has multiple prices (e.g. monthly and annual plans) or has variations (e.g. starter or pro tiers), a standard coupon will apply to all of them. Previously, to discount only for one targeted price, you would need to restructure your product catalog and create different coupons per product. Now, a discount calculation script can apply discount based on price. Depending on what you want to match on, there are two approaches:</p>
<h5>1. Use metadata on the price object</h5>
<p>You can add metadata to price objects to identify pricing categories in your business. For example, add the following key-value pair to prices for enterprise plans:</p>
<pre><code class="language-ts">&quot;metadata&quot;: { &quot;plan_type&quot;: &quot;enterprise&quot; }
</code></pre>
<p>Then, create a coupon with the type set to “Custom” and select “Price-targeted amount off” to give a $100 discount on each matching enterprise plan item on the invoice.</p>
<p><img src="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image1.png" alt="Discount calculator configured for a $100 price-targeted amount off when price metadata plan_type is enterprise"/></p>
<p>You can apply discount to any information you put in price metadata such as:</p>
<ul>
<li>Apply discount to certain regions such as Asia-Pacific only for regional or seasonal marketing campaigns</li>
<li>Apply discount based on eligibility metadata such as partners-only</li>
<li>Apply discount to legacy or old pricing plans only</li>
</ul>
<h5>2. Use native properties on the price object</h5>
<p>The <a href="https://docs.stripe.com/api/prices/object">price object</a> is available to the script for discount calculation. It already includes information which can be used to target discounts selectively:</p>
<ul>
<li><code>price.recurring.interval</code> to discount only annual or monthly plans</li>
<li><code>price.recurring.usage_type</code> to discount only metered usage and not discount licensed seats</li>
<li><code>price.type</code> to discount only one-time prices or only recurring prices</li>
<li><code>price.unit_amount</code> to compute caps or thresholds based on the per-unit cost</li>
<li><code>price.billing_scheme</code> to avoid double discounts to customers who already get better price through tiered pricing</li>
</ul>
<p>The following script calculates a discount from the subtotal of annual line items, excluding monthly line items, and caps it at the request&#x27;s gross amount.</p>
<pre><code class="language-ts">  export default class AnnualOnlyDiscount
      implements Commerce.DiscountCalculation&lt;AnnualOnlyConfig&gt;
    { 
      computeDiscounts(request, config, _context) {
        const percent = Decimal.from(config.discountPercent)
          .div(Decimal.from(&#x27;100&#x27;), 10, &#x27;half-up&#x27;);
        // Sum subtotals of annual line items only
        let annualSubtotal = Decimal.zero;
        for (const li of request.lineItems) {
          if (li.priceKind === &#x27;price&#x27; &amp;&amp; li.price.recurring?.interval === &#x27;year&#x27;) {
            annualSubtotal = annualSubtotal.add(li.subtotal.amount);
          } 
        } 
        const discount = annualSubtotal.mul(percent);
        const capped = discount.gt(request.grossAmount.amount)
          ? request.grossAmount.amount
          : discount;
        return {
          discount: {
            amount: {amount: capped, currency: request.grossAmount.currency},
          },
        };
      }
    }

</code></pre>
<p>Scripts are made available to a Stripe account by bundling them in a <a href="https://docs.stripe.com/stripe-apps">Stripe App</a>. Inside the app, you define an <a href="https://docs.stripe.com/extensions/how-extensions-work">extension</a> that targets a specific extension point like discount calculation. The extension contains your TypeScript script. By default, when you upload the app to your account, it is available only on your account. To share it with others, use app <a href="https://docs.stripe.com/stripe-apps/distribution-options">distribution options</a>. When the app with the custom discount script code is installed into an account, the Script starts showing as an option in the list of Custom types in the coupon creation page.</p>
<h4>Get different behaviors from the same coupon</h4>
<p>Instead of selectively applying or not applying the coupon to different products or prices, the same coupon can behave differently for different products or prices. For example, if you are running a campaign that offers $50 off a subscription which is priced at $25/month or $300/year, you might want to give the annual subscribers the full $50 off but split the discount across two months for monthly subscribers. Previously, you would need two different coupons - one for the annual plan and one for the monthly plan. Now, in a script you can code what you want to happen and use the same coupon.</p>
<pre><code class="language-ts">export default class IntervalAwareDiscount
      implements Commerce.DiscountCalculation&lt;IntervalAwareConfig&gt;
    { 
      computeDiscounts(request, config, _context) {
        const totalValue = config.totalDiscountValue?.amount ?? Decimal.zero;
        const months = Decimal.from(config.durationInMonths);
        const isMonthly = request.lineItems.some(
          (li) =&gt; li.priceKind === &#x27;price&#x27; &amp;&amp; li.price.recurring?.interval === &#x27;month&#x27;
        );
        // Annual: full $50 off one invoice
        // Monthly: $50 / 2 = $25 off per invoice (coupon duration_in_months handles repeat)
        const discount = isMonthly
          ? totalValue.div(months, 2, &#x27;half-up&#x27;)
          : totalValue;
        const capped = discount.gt(request.grossAmount.amount)
          ? request.grossAmount.amount
          : discount;
        return {
          discount: {
            amount: {amount: capped, currency: request.grossAmount.currency},
          },
        };
      }
    }
</code></pre>
<p>In this example, the two fields <code>totalDiscountValue</code> and <code>durationInMonths</code> are part of the configuration and are rendered in the Stripe Dashboard for the coupon-creating user to provide values. Using the SDK&#x27;s <code>MonetaryAmount</code> type for the discount value ensures the amount is in the correct currency units regardless of currency type.</p>
<p>This pattern can be used to apply different strategies on the same coupon:</p>
<ul>
<li>Time-based distribution of discounts such as spreading out onboarding discounts across weeks to give customers more time to explore your product</li>
<li>Tiered pricing incentives where you give a flat discount for lower tiers and percentage discount for higher tiers using <code>price.unit_amount</code> to define thresholds.</li>
<li>Commitment-length discounts where 6-month plans get lower rates than 12-month commitments</li>
<li>Product bundling so that you only discount when both products are present. Standard coupons can apply to two products but not conditionally based on only when those two products are present.</li>
<li>Add-on bundling so that a coupon discounts an add-on only when a base product is on the invoice.</li>
</ul>
<h4>Dynamic caps and leaving room for growth</h4>
<p>A percentage discount with a fixed amount cap can be implemented using standard coupons but requires you to hardcode the amount cap. If you are an AI SaaS company selling a base model at $150 with incremental seats at $20/month, you want to be prepared for unpredictable price changes. You can offer a discount of 20% off seat costs, capped at 5 free seats, where the capped amount works out to $100 today. However, if your seat price changes to $25 with your next specialized model, you would need to go and update the coupon details. Avoid this by using a script that looks at the seat&#x27;s <code>price.unit_amount</code> at the time of the coupon being <em>used</em> by your customers to compute the cap. The cap adjusts automatically when the price changes and the same coupon works across multiple prices.</p>
<p><img src="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image2.jpg" alt="Low-volume 25-seat invoice comparing a standard $100-capped coupon with a script whose cap follows unit price"/><br/>
You can also use different properties to calculate the discount value and the cap value. You could cap by the base subscription cost instead of the seat cost.</p>
<p>As you grow in scale, you offer volume based discounts because your infrastructure or support costs grow sub-linearly with seats: serving 70 seats doesn&#x27;t cost 7x what serving 10 seats costs and your margins per seat improve with volume. This can be an opportunity to expand revenue, encourage product entrenchment and higher volume purchases. Tiered discounts can also result in more savings for your business compared to flat-threshold discounts; e.g. offering 20% off on the next 40 seats is better than 20% off up to 70 seats. You can use scripts to offer this tiered pricing as shown in the image below.</p>
<p><img src="https://stripe.dev/images/billing-customizations-change-how-discounts-are-applied/image3.jpg" alt="High-volume 70-seat invoice comparing a flat $100 cap with a script that applies tiered discounts"/></p>
<p>Lastly, even if you use a complicated discount strategy, its thresholds can be configured through the Stripe Dashboard without needing to change the custom coupon code. Use the scripts config form to provide input values to the script at the time of coupon creation. This means that even those who don&#x27;t know TypeScript or use the Stripe CLI can have control over how a custom coupon is created.</p>
<p>Here is the example code to implement the previous example:</p>
<pre><code class="language-ts">   export default class TieredDynamicCapDiscount
      implements Commerce.DiscountCalculation&lt;TieredDynamicCapConfig&gt;
    { 
      computeDiscounts(request, config, _context) {
        const percent = Decimal.from(config.discountPercent)
          .div(Decimal.from(&#x27;100&#x27;), 10, &#x27;half-up&#x27;);
        const tier1Max = Decimal.from(config.tier1MaxSeats);
        const freeSeats = Decimal.from(config.tier1FreeSeats);
        
        let seatPrice = Decimal.zero;
        let seatQty = Decimal.zero;
        let basePlanCost = Decimal.zero;
        for (const li of request.lineItems) {
          if (li.priceKind !== &#x27;price&#x27;) continue;
          if (li.price.product?.metadata[config.seatProductMetadataKey]
              === config.seatProductMetadataValue) {
            seatPrice = li.price.unitAmount ?? Decimal.zero;
            seatQty = li.quantity ?? Decimal.zero;
          } 
          if (li.price.product?.metadata[config.basePlanProductMetadataKey]
              === config.basePlanProductMetadataValue) {
            basePlanCost = li.subtotal.amount;
          } 
        } 
        // Tier 1: first N seats, capped at free seats × unit price
        const t1Seats = seatQty.gt(tier1Max) ? tier1Max : seatQty;
        const t1Raw = seatPrice.mul(t1Seats).mul(percent);
        const t1Cap = seatPrice.mul(freeSeats);
        const tier1 = t1Raw.gt(t1Cap) ? t1Cap : t1Raw;
        // Tier 2: remaining seats, capped at base plan cost
        let tier2 = Decimal.zero;
        if (seatQty.gt(tier1Max)) {
          const t2Raw = seatPrice.mul(seatQty.sub(tier1Max)).mul(percent);
          tier2 = t2Raw.gt(basePlanCost) ? basePlanCost : t2Raw;
        }
        return {
          discount: {
            amount: {
              amount: tier1.add(tier2),
              currency: request.grossAmount.currency,
            },
          },
        };
      }
    }
</code></pre>
<p>You might have been using workarounds to implement these discount strategies in your Stripe integration. Scripts remove the need to maintain and sync logic between your system and Stripe. If you are using self-hosted checkout purely to manage coupons, you can evaluate using Stripe-hosted checkout with scripts instead. Learn more about <a href="https://docs.stripe.com/billing/scripts/discount-calculation">discount calculation</a> and <a href="https://docs.stripe.com/billing/scripts/author-your-own">writing your own script</a>.</p>]]></content:encoded></item><item><title><![CDATA[Claimable sandboxes: Frictionless Stripe accounts for agents]]></title><description><![CDATA[Claimable sandboxes are a primitive that unblocks agents to build and test Stripe integrations without having to sign up. Learn how they work and how we navigated security, latency, cost, and UX tradeoffs.]]></description><link>https://stripe.dev/blog/claimable-sandboxes-frictionless-stripe-accounts-for-agents</link><guid isPermaLink="true">https://stripe.dev/blog/claimable-sandboxes-frictionless-stripe-accounts-for-agents</guid><dc:creator><![CDATA[Mathew Varughese]]></dc:creator><pubDate>Mon, 02 Nov 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image5.png"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image3.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image7.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image6.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image8.png"/><p>At Stripe, we obsess over streamlining developer experiences. Take Stripe sandboxes, our isolated test environments that allow developers to get started testing. The first thing you get when you register for a Stripe account is a set of sandbox keys for testing.</p>
<p>When it takes 40 minutes to build a payments integration, spending a minute signing up isn’t that big of a deal. But when an agent only takes a few minutes to build an integration, suddenly the signup friction becomes more apparent.</p>
<figure>
  <img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image5.png" alt="Flowchart showing a developer&#x27;s path to integrate Stripe without an agent: Goal &quot;Integrate Stripe&quot; leads to a friction block of &quot;Read docs,&quot; &quot;Sign up for account,&quot; and &quot;Copy API keys,&quot; then &quot;Write code,&quot; ending in &quot;Working test payment!&quot;"/>
  <figcaption>Without agents</figcaption>
</figure>
<figure>
  <img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image1.png" alt="Flowchart showing an agent&#x27;s path to integrate Stripe: Goal &quot;Integrate Stripe&quot; leads to &quot;Agent writes code,&quot; which still requires passing through a friction block of &quot;Sign up for account&quot; and &quot;Copy API keys&quot; before reaching &quot;Working test payment!&quot;"/>
  <figcaption>With agents</figcaption>
</figure>
<p>We heard from our partners at companies like Vercel, Replit, and Lovable that they wanted a way to provision Stripe sandboxes for their users without requiring a sign-up flow. This would allow users on their AI app platforms to create test payment integrations with zero friction. Together we designed the claimable sandbox primitive. A claimable sandbox is a fully functioning Stripe sandbox with working API test keys, but it does not require any registration to acquire. They help users test integrations without having to register for an account. After the payment integration is complete, you can “claim” the sandbox. Delaying registration avoids context switching, letting you (and your agent) stay in flow state.</p>
<figure>
  <img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image4.png" alt="Flowchart showing the claimable sandbox flow: Goal &quot;Integrate Stripe&quot; leads directly through &quot;Agent writes code&quot; and &quot;Agent gets claimable sandbox&quot; to &quot;Working test payment!&quot; with &quot;Claim sandbox&quot; shown as a separate, deferred-friction step branching off afterward"/>
  <figcaption>With claimable sandboxes</figcaption>
</figure>
<p>We believe this primitive of letting an agent easily explore your product offerings and defer signing up will become a common practice, but it requires careful consideration of security and cost implications.</p>
<p>This post will detail how we built these claimable, anonymous, ephemeral sandboxes, which we now use in the docs, offer via API, and expose as a CLI command.</p>
<p><strong>Docs</strong>: Logged-out users that visit <a href="http://docs.stripe.com/">docs.stripe.com</a> get a unique sandbox that allows them to interact with personalized features, like interactive code snippets, a shell within <a href="https://docs.stripe.com/workbench">Workbench</a>, and customized integration guides.</p>
<p><strong>API</strong>: The <a href="https://docs.stripe.com/sandboxes/claimable-sandboxes">Claimable Sandboxes API</a> is designed for users to provision Stripe sandboxes on platforms like Vercel, Replit, Lovable, etc.</p>
<p><strong>CLI</strong>: The <code>stripe sandbox create</code> <a href="https://docs.stripe.com/cli/sandbox">CLI command</a> does not require a signup and allows an AI agent to get working keys with no browser registration required. We designed this specifically for agents.</p>
<p>Here is an example of this working in the CLI. An agent calls the CLI to get sandbox keys:</p>
<img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image3.gif" alt="Animated screen recording of an AI coding agent in a terminal building a &quot;Leafy&quot; plant shop storefront, with a live browser preview on the right showing a product grid of plants with prices and Buy buttons"/>
<p>After a few minutes, I have a working payment flow I can test:
<img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image7.gif" alt="Animated screen recording of the AI coding agent wiring up Stripe Checkout for the Leafy plant shop, describing in the terminal how it created a sandbox account and test keys without requiring the user to sign up, alongside the live storefront preview"/></p>
<p>When I am ready, I can claim the sandbox by registering for a Stripe account (notice it prefills my email using my git config!). I can navigate to my transactions and see the test payment and objects created before I claimed:</p>
<img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image6.gif" alt="Animated screen recording of claiming the sandbox: registering for a Stripe account with the email pre-filled from git config, then viewing the Stripe Dashboard transactions list showing the test payment and objects created before the claim"/>
<p>Every week, thousands of new users successfully integrate a payment flow and claim their sandbox. Across all businesses that have come through this path to date, weekly payment volume recently surpassed $3M.</p>
<h2>Under the hood</h2>
<p>Provisioning over 50,000 Stripe sandboxes a day with fully functioning API keys has latency, security, and cost implications. Although these keys can only interact with test-mode objects, their requests are still served by Stripe’s production infrastructure. We want to ensure that bad actors (or agents) can’t abuse this to take down traffic for legitimate users.</p>
<p>First, we tackled latency. Provisioning a sandbox takes a few seconds. We did not want to introduce latency to every docs request or every time a user of Replit or v0 builds a new Stripe integration. We solved this with a pool of “hot-and-ready sandboxes.” We use Temporal to run a provisioning workflow on a cron schedule that populates the pool with references to Stripe sandbox accounts. This is partitioned by country, use case, and developer platform. When a sandbox is requested via these different use cases, for example, if Claude Code runs <code>stripe sandbox create</code>, it pulls from this pre-populated pool and the particular use case. Each partition has different rate limits.</p>
<p>To tackle cost, we set specific TTLs for these sandboxes. The sandbox creation itself is not the expensive piece–it is indefinitely storing an unbounded set of data in that sandbox. We don’t want to keep around dummy test data that is not connected to a real user account indefinitely, so we set expiry dates on the sandboxes. We built a deletion pipeline to delete sandboxes that are not claimed by a user after this specified time.  It involves a sweeper job (also running on Temporal) that kicks off deletion pipelines of the sandboxes and associated data once they are past their TTL.</p>
<p>Security and keeping the rest of Stripe safe is a huge concern. For the CLI and API use cases we require an email address. This is to prevent phishing attacks, where a phisher could collect sandboxes and trick users into claiming. This allows us to present this email during the claim so that it’s clear how the sandbox link is created and also has a UX benefit of streamlining account registration. For the Docs case, the claim process occurs through browser cookies. We also created a new Stripe API key type specifically for claimable sandboxes, with its own rate-limiting tier. This prevents claimable-sandbox traffic from negatively affecting the rest of Stripe’s systems.</p>
<p>For the API, we have partitions in the pool and per-provider rate limiting to ensure that one partner cannot drain the pool for the others. For the Docs case, we rely on hCaptcha, which uses browser signals to ensure that bad actors cannot make requests and drain the pool. But, the CLI is not straightforward. We wanted to make the CLI flow as frictionless as possible, which meant any browser pop-ups were a non-starter. How can we balance security of Stripe systems with a friction-free, unauthenticated endpoint that shares working API keys? We could not rely on typical browser captcha mechanisms so we created a system very similar to <a href="https://mcaptcha.org/">mCaptcha</a>.</p>
<p>When the Stripe CLI requests a new sandbox, our servers return a proof-of-work puzzle for the CLI to solve. To simplify slightly, the server generates 3 key variables:</p>
<ol>
<li>A random salt</li>
<li>A secret number. The larger this number, the more difficult it will be for the client to solve the puzzle. Higher difficulties take clients longer to solve, which in turn decreases the request load on our servers.</li>
<li>A challenge, which is the hash of the salt and the secret number.</li>
</ol>
<p>The Stripe CLI gets back the salt and the challenge, and needs to brute-force iterate to find the secret number, by hashing the guess and the salt until it equals the challenge. Then, it sends this back to Stripe servers, where we can verify the submitted solution against the challenge by hashing it.</p>
<br/>
<img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image2.png" alt="Sequence diagram of the proof-of-work handshake between the Stripe CLI and Stripe servers: the CLI posts an email to request a challenge, receives a salt and challenge hash, brute-forces the secret number by hashing guesses against the salt, then submits the solution to receive sandbox API keys and a claim URL"/>
<p>The appeal of this approach is it can be entirely in the terminal. On Stripe’s servers, we are able to dynamically increase the time (aka the ‘difficulty’) it takes the user’s machine to solve the challenge by increasing the size of the secret number. This difficulty is determined based on numerous signals, including  current server load, and fraud signaling based on the supplied email. There are also different layers of rate limits, and other typical security safeguards at play, such as HMAC signing of the challenge string and expiry time built into the salt.</p>
<h2>Claiming a sandbox and onboarding</h2>
<p>When we provision a claimable sandbox we also generate a unique link that lets a user claim it. The user can either create a new Stripe account or attach the sandbox to an existing account. In either case, the sandbox retains all API activity and objects created in it before the claim.</p>
<p>After claiming, the user enters a tailored onboarding flow in the Stripe dashboard. For example, if sandbox activity indicates a subscription-based pricing model, we present a subscription-business onboarding flow.</p>
<p>We finalize a claim through an operation called reparenting. Stripe accounts are modeled as a graph in which sandboxes are children of live mode accounts. Because a Stripe user might have access to multiple accounts (many of our users operate multiple businesses), the Stripe “user” object lives separately from the account graph, because one user may operate multiple businesses and therefore have access to multiple accounts. Access must be granted to each account individually.</p>
<p>During the reparenting operation we select the live-mode account, make it the sandbox’s parent, mark the sandbox as claimed, and grant the Stripe user access to both accounts. If the user creates a new live-mode account, we also copy relevant settings and data—such as the business name, time zone, and country—from the sandbox. Some data is copied synchronously, while the rest is copied asynchronously to reduce latency.</p>
<br/>
<img src="https://stripe.dev/images/claimable-sandboxes-frictionless-stripe-accounts-for-agents/image8.png" alt="Three-panel diagram of the reparenting operation: before claim, an unclaimed sandbox holds test transactions and products; during claim, the user either creates a new live-mode account or attaches an existing one; after reparenting, the live-mode account becomes the sandbox&#x27;s parent and the user is granted access to both accounts"/>
<p>For platforms that use the Claimable Sandboxes API, we emit webhooks at each stage of the claimable sandbox lifecycle, including creation, upcoming expiration, expiration, and claim.  We also email the platform’s user a link to claim the sandbox. To reduce security risks, claim links expire after seven days and platforms can refresh an expired link by generating a new one. The claim flow must balance numerous edge cases across the reparenting operation, considerations for new and existing accounts, email delivery, link expiration, and platform-driven link refreshes without compromising security, latency, or UX.</p>
<h2>Conclusion</h2>
<p>Coding agents are like faster bikes: they let you explore faster. But, smooth riding is not just about your bike, it’s about the infrastructure around you. Biking down a paved path is a much better experience than riding down a busy city street with no bike lane and red lights every 20 feet. In other words, fast bikes won’t save you from bad infrastructure. Coding agents still need great developer experience to succeed. Even though they compress hours of integration work into minutes, they make every interruption even more visible.</p>
<p>Claimable sandboxes remove one of those interruptions: an agent can provision working test keys, build and verify an integration, and let the user register only when they are ready. More than 100,000 businesses have now been started with a claimable sandbox. Stripe is evolving our agent experience and looking at how to make it easier to build integrations and operate businesses.  If you are building an integration with an agent, point it to <a href="https://docs.stripe.com/agents.md">docs.stripe.com/agents.md</a> to get started.</p>
<p>And, if you’re interested in building cool stuff for agents and developers at Stripe, we’re hiring. Check out our <a href="https://grnh.se/b5wzjpge1us?query=engineer">engineering jobs</a>.</p>]]></content:encoded></item><item><title><![CDATA[Build richer Stripe apps with the right integration approach]]></title><description><![CDATA[Developers now have more ways than ever to build and publish an app for the Stripe App Marketplace. With all of these new primitives to choose from, it's important to understand which to choose when, and how to combine them in your app.]]></description><link>https://stripe.dev/blog/build-richer-stripe-apps-with-the-right-integration-approach</link><guid isPermaLink="true">https://stripe.dev/blog/build-richer-stripe-apps-with-the-right-integration-approach</guid><dc:creator><![CDATA[Dravya Nataraj]]></dc:creator><pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/build-richer-stripe-apps-with-the-right-integration-approach/image1.png"/><p>Developers now have more ways than ever to build and publish an app for the Stripe App Marketplace. New integration pathways allow apps to extend Stripe by appearing in core product flows and giving users full-page apps in the Stripe Dashboard.</p>
<p>Each of these new extensibility primitives plays its own role in shaping your app&#x27;s user experiences. <a href="https://docs.stripe.com/stripe-apps/patterns/full-page-apps">Full-page apps</a> enable you to build rich experiences in the Dashboard. <a href="https://docs.stripe.com/extensions/custom-actions/build-with-script">Scripts</a> run custom logic at Stripe-defined extension points. <a href="https://docs.stripe.com/extensions/custom-actions/build-with-remote-function">Remote functions</a> connect Stripe to your backend, <a href="https://docs.stripe.com/custom-objects">custom objects</a> store app-specific data, and <a href="https://docs.stripe.com/workflows">Stripe Workflows</a> connects triggers and actions in an automation.</p>
<p>With all of these new primitives to choose from, it&#x27;s important to understand which to choose when, and how to combine them in your app. Our first piece of advice: start with the task the user needs to complete, and then choose the simplest combination that gets them there. In this guide, we’ll introduce these new primitives, so you can map each one to the task your user needs to accomplish.</p>
<h2>Start with the user task</h2>
<p>Imagine your app syncs <a href="https://docs.stripe.com/api/customers">Stripe Customer</a> objects with records in a customer relationship management (CRM) system. Most records match automatically, but some need a person to resolve an ambiguous result. That process might need backend matching logic, durable state, and a place to review exceptions. Those are different design problems and, for each, Stripe provides a different primitive that can be included in an app and published on the Stripe App Marketplace.</p>
<table class="c53"><thead><tr class="c34"><td class="c29" colSpan="1" rowSpan="1"><p class="c1"><span class="c28 c36">What</span><span class="c28 c35"> the task requires</span></p></td><td class="c37" colSpan="1" rowSpan="1"><p class="c1"><span class="c43 c28">Stripe primitive</span></p></td><td class="c50" colSpan="1" rowSpan="1"><p class="c1"><span class="c36 c28">Best-fit use</span><span class="c35 c28"> cases</span></p></td></tr></thead><tbody><tr class="c12"><td class="c21" colSpan="1" rowSpan="1"><p class="c1"><span class="c7">A dedicated user experience in the Stripe Dashboard</span></p></td><td class="c55 c47" colSpan="1" rowSpan="1"><p class="c1"><span class="c46">Full-page apps<br/></span></p></td><td class="c23" colSpan="1" rowSpan="1"><ul class="c30 lst-kix_d66ordwe39op-0 start"><li class="c1 c13 li-bullet-0"><span class="c7">Cross-customer queues that require Stripe context or action</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Operational review, exception handling, and approval workflows</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Configuration, reporting, and integration-health experiences</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Workspaces for personas that spend meaningful time in Stripe</span></li></ul></td></tr><tr class="c41"><td class="c21" colSpan="1" rowSpan="1"><p class="c1"><span class="c7">Lightweight partner-defined logic running in Stripe</span></p></td><td class="c55 c47" colSpan="1" rowSpan="1"><p class="c1"><span class="c33">Scripts</span></p></td><td class="c23" colSpan="1" rowSpan="1"><ul class="c30 lst-kix_idvf8eqtlhzb-0 start"><li class="c1 c13 li-bullet-0"><span class="c7">Normalize or enrich event data before downstream delivery</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Route by event type, object state, amount, or merchant policy</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Apply thresholds, eligibility checks, or simple transformations</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Map Stripe lifecycle states into partner workflows</span></li></ul></td></tr><tr class="c38"><td class="c21" colSpan="1" rowSpan="1"><p class="c1"><span class="c7">Partner-hosted logic invoked by Stripe</span></p></td><td class="c47 c55" colSpan="1" rowSpan="1"><p class="c1"><span class="c33">Remote functions</span></p></td><td class="c23" colSpan="1" rowSpan="1"><ul class="c30 lst-kix_6mqlp8jsqxrb-0 start"><li class="c1 c13 li-bullet-0"><span class="c7">Create, update, or resolve records in the partner platform</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Run proprietary scoring, decisioning, or AI workflows</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Resolve identity or fetch context from the partner’s systems</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Return status, recommendations, or a next action to Stripe</span></li></ul><p class="c1 c16"><span class="c7"></span></p></td></tr><tr class="c51"><td class="c21" colSpan="1" rowSpan="1"><p class="c1"><span class="c7">Durable app-specific data stored in Stripe</span></p></td><td class="c55 c47" colSpan="1" rowSpan="1"><p class="c1"><span class="c33">Custom objects<br/></span></p></td><td class="c23" colSpan="1" rowSpan="1"><ul class="c30 lst-kix_a7vj0q7vrdcl-0 start"><li class="c1 c13 li-bullet-0"><span class="c7">Map Stripe entities to partner-side entities</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Persist workflow status, confidence, ownership, or configuration</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Link partner records to payments, invoices, subscriptions, or accounts</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Track closed-loop checkpoints across systems</span></li></ul></td></tr><tr class="c18"><td class="c21" colSpan="1" rowSpan="1"><p class="c1"><span class="c7">A single- or multi-step action initiated by a trigger</span></p><p class="c1 c16"><span class="c7"></span></p></td><td class="c55 c47" colSpan="1" rowSpan="1"><p class="c1"><span class="c33">Stripe Workflows</span></p></td><td class="c23" colSpan="1" rowSpan="1"><ul class="c30 lst-kix_7k1nnu3o3ii1-0 start"><li class="c1 c13 li-bullet-0"><span class="c7">Connect triggers and conditions to built-in or custom actions</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Coordinate steps across Stripe and partner systems</span></li><li class="c1 c13 li-bullet-0"><span class="c7">Let users configure when an app action runs and what happens next</span></li></ul></td></tr></tbody></table>
<h3>Full-page apps: give users an entire page in Stripe</h3>
<p>Give your app a <a href="https://docs.stripe.com/stripe-apps/patterns/full-page-apps">full page</a> in the Stripe Dashboard. You can build tabbed navigation, overview pages, tables, and list-to-detail flows using Stripe components. <a href="https://docs.stripe.com/stripe-apps/routing">Routing</a> supports bookmarkable URLs and links to specific views.</p>
<p> <img src="https://stripe.dev/images/build-richer-stripe-apps-with-the-right-integration-approach/image1.png" alt="An example of a full-page app"/></p>
<p>Choose this surface when users need a UI; for example, an overview of their account, a list of records to review, a reconciliation view, or a metrics dashboard. In the CRM example mentioned earlier, an app user could filter unmatched customers, inspect suggested matches, and resolve exceptions directly in the Stripe Dashboard.</p>
<p>Ask where the app user already spends most of their day. If they work primarily in Stripe and need Stripe context to make a decision, a dedicated page in the Dashboard can remove a lot of tool switching. If the action belongs to one Stripe object, such as a Customer or Invoice, a <a href="https://docs.stripe.com/stripe-apps/components/contextview">context view</a> may be enough. If the integration handles the task automatically, you might not need a UI at all.</p>
<p>Design questions: Who is the primary user? Why should this workflow live in Stripe rather than the partner product? Which native Stripe surfaces should remain the system of action?</p>
<p>See the <a href="https://docs.stripe.com/stripe-apps/patterns/full-page-apps">full-page apps guide</a> and <a href="https://github.com/stripe/stripe-apps/tree/main/examples/full-page">example app</a>.</p>
<h3>Custom objects: model the data your app adds</h3>
<p>Custom objects let you define structured records in Stripe, with typed fields and relationships to Stripe objects and other custom objects. They can also have methods that attach business logic to those records.</p>
<p>In the CRM example, a customer-match record could link a Stripe Customer object to its CRM record and track whether the match is confirmed or still needs review. That state is useful when both the Dashboard experience and the automation need to work with the same relationship.</p>
<p>Use metadata when a few values attached to an existing Stripe object are enough—for example, a single external customer identifier. Consider custom objects when the relationship needs its own structure, lifecycle, or associated data. If the information already lives in your backend and Stripe-side experiences don’t need it, another copy may add unnecessary synchronization work.</p>
<table class="c49"><thead><tr class="c18"><td class="c48" colSpan="1" rowSpan="1"><p class="c4"><span class="c0">Consideration</span></p></td><td class="c40" colSpan="1" rowSpan="1"><p class="c4"><span class="c0">Metadata</span></p></td><td class="c40 c47" colSpan="1" rowSpan="1"><p class="c4"><span class="c0">Custom objects</span></p></td></tr></thead><tbody></tbody><tbody><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Data model</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Key-value data attached to a supported Stripe object</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Structured app-defined records with their own fields and relationships</span></p></td></tr><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Value types</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Keys and values are stored as strings</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Supports defined field types such as text, numbers, dates, enums, and monetary amounts</span></p></td></tr><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Relationships</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">The data belongs to the Stripe object carrying the metadata</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">A record can relate to Stripe objects and other custom objects</span></p></td></tr><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Behavior</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Stores additional values; it doesn’t define app-specific methods</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Methods can attach app-specific business logic to records</span></p></td></tr><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Use it when</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">You need a small identifier, label, or integration-specific value on an existing Stripe object</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">The data needs its own schema, relationships, lifecycle, or Stripe-side behavior</span></p></td></tr><tr class="c18"><td class="c6" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Avoid it when</span></p></td><td class="c26" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">The information needs complex structure or its own lifecycle</span></p></td><td class="c17" colSpan="1" rowSpan="1"><p class="c4"><span class="c8">Stripe-side experiences don’t need the data and your backend is already its clear system of record</span></p></td></tr></tbody></table>
<p>For the CRM integration, store a single external CRM ID in the Customer object’s metadata when that is the only relationship you need. Consider a custom object when the match has its own status, confidence, review history, or relationships that Stripe-side experiences and automations need to access.</p>
<p>Decide which system owns each field and what happens when a match changes. Storing a relationship makes it explicit; your integration still needs to keep it current.</p>
<p>Design questions: What is the minimum durable schema? Who owns each field? What are the permission, retention, migration, and lifecycle requirements?</p>
<p>The <a href="https://docs.stripe.com/custom-objects">custom objects guide</a> covers available capabilities and access.</p>
<h3>Scripts: run custom logic at a supported extension point</h3>
<p>Scripts let you write TypeScript that runs in Stripe’s managed environment. An extension point defines when Stripe calls your code, what inputs it receives, and what it must return.</p>
<p>In Billing, scripts can customize specific decisions inside the billing flow. The <a href="https://docs.stripe.com/billing/scripts/stripe-authored">currently documented extension points</a> cover customer balance, recurring billing item handling, and prorations. For example, a proration script could implement a business policy that calculates credits by whole days. These scripts participate in the billing decision itself; their interface determines what they can change.</p>
<p>You can also implement a custom action for Stripe Workflows with a script. For the CRM app, that action might transform configured input into the CRM’s expected format and call its API. External calls use declared endpoints, with Stripe managing secret storage and egress authentication.</p>
<p>Use a script when the operation fits the extension point’s contract and you want Stripe to host the logic. The code doesn’t have to be a pure calculation, but treat the runtime as a constrained execution environment, not as a general-purpose Node.js server.</p>
<p>Script-backed custom actions for Stripe Workflows currently have a 30-second execution timeout. Stripe retries timeouts and unhandled script errors so design side effects to avoid duplicate records or notifications. Billing scripts have their own constraints and failure behavior; don’t assume the same execution contract applies across extension points.</p>
<p>Design questions: Is the logic deterministic and reusable? What are the runtime, observability, and rollout constraints? When should processing move to partner infrastructure?</p>
<p>Read the guides for <a href="https://docs.stripe.com/billing/scripts/author-your-own">Billing script authoring</a> and <a href="https://docs.stripe.com/extensions/custom-actions/build-with-script">custom actions</a>.</p>
<h3>Remote functions: use the backend you already operate</h3>
<p>A remote function lets Stripe invoke an HTTP endpoint on your infrastructure. For a custom action in Stripe Workflows, Stripe sends a signed request to your endpoint, and your implementation returns the action’s result.</p>
<p>Choose this approach when the operation belongs in your existing backend. The CRM app might need to search a private identity database, apply an existing matching model, or coordinate internal services. You retain control over the language, deployments, credentials, and observability for that code.</p>
<p>Hosting the code yourself doesn’t remove the invocation deadline. Remote-function custom actions in Stripe Workflows currently have a 20-second timeout. Verify request signatures and make execution idempotent: Stripe retries timeouts and 5xx responses, and the request ID remains stable across retries.</p>
<p>If you return success and start background work, Stripe Workflows records the action as successful before that work finishes. For longer operations, distinguish “work accepted” from “work completed” and design how completion and failure become visible to users.</p>
<h4>When to use a script vs. a remote function</h4>
<p>This choice usually comes down to dependencies and ownership. If the action only needs a short transformation and a declared API call, keep it in a script. If the logic already lives in your backend, expose it through a remote function rather than rebuilding it in Stripe.</p>
<p>Design questions: How will requests be authenticated and verified? Are operations idempotent? What are the timeout, retry, error-handling, and sandbox behaviors?</p>
<p>Read the guide to <a href="https://docs.stripe.com/extensions/custom-actions/build-with-remote-function">build a custom action with a remote function</a>.</p>
<h3>Stripe Workflows: connect triggers and actions</h3>
<p>Stripe Workflows lets users connect triggers, conditions, and actions in a visual builder. An automation can be triggered by a Stripe event, a <a href="https://stripe.dev/blog/run-recurring-jobs-on-stripe-workflows">schedule</a>, or an on-demand invocation. Actions can include custom actions supported by a script or a remote function.</p>
<p>As an app developer, you can add a custom action alongside Stripe’s built-in actions. You define its inputs and outputs; the user decides where the action belongs in their automation.</p>
<p>Use the built-in actions when they already express the behavior you need. Add a custom action when your app contributes a capability, such as matching a Stripe Customer object to a CRM record. A script or remote function implements the operation, while the automation controls when it runs and what happens next.</p>
<p>Start with the <a href="https://docs.stripe.com/workflows">Workflows overview</a> and <a href="https://docs.stripe.com/extensions/custom-actions/how-custom-actions-work">custom action guide</a>.</p>
<h3>Putting the choices together</h3>
<p>Here’s an illustrative design for the CRM app. Its goal is to match customers automatically and give an app user enough context to resolve the remaining cases.</p>
<ol>
<li>
<p>Start the automation. A <a href="https://docs.stripe.com/api/customers/create"><code>customer.created</code> event</a> starts an automation in Stripe Workflows. The user adds the app’s “Match customer” custom action and configures its inputs.</p>
</li>
<li>
<p>Run the matching operation. The action uses a remote function because matching depends on the partner’s private database. The endpoint verifies the request, handles retries safely, and returns a result within the invocation deadline.</p>
</li>
<li>
<p>Persist the relationship. The integration writes the result to a custom object if the Stripe-side experience needs structured matching state. The integration defines which system writes the record and how later changes update it.</p>
</li>
<li>
<p>Review exceptions. A full-page app displays unresolved records. When an app user chooses a match, the app’s integration updates the relationship and records the outcome.</p>
</li>
</ol>
<p>This design doesn’t need a script in addition to the remote function. A simpler integration could use a script action to transform inputs and call a CRM API. It could store only an external identifier in metadata and omit the review workspace entirely.</p>
<p>One rule of thumb: don’t add a primitive if you can’t name the requirement it satisfies. Once the design is set, determine key performance indicators to measure success. For this app, useful measures are the percentage of matches completed automatically and the time it takes an app user to resolve the rest.</p>
<h3>Build one complete journey first</h3>
<p>Stripe’s extensibility primitives give apps new ways to add user experiences, custom logic, orchestration, and structured data to Stripe. Start with the user’s task, choose the primitive that addresses each requirement, and add another only when the journey needs it.</p>
<p>Learn more about all the <a href="https://docs.stripe.com/extensibility">extensibility primitives</a> Stripe offers and review the <a href="https://docs.stripe.com/stripe-apps">Stripe Apps documentation</a> to build your app. We’re excited to see what you build.</p>]]></content:encoded></item><item><title><![CDATA[Your AI agent can move money in Stripe - here's how to stay in control]]></title><description><![CDATA[With Stripe’s MCP server, AI agents can build your checkout page, run financial reports, and automate refunds or price adjustments. Now, agents can even send money to others, using Stripe Treasury.]]></description><link>https://stripe.dev/blog/your-ai-agent-can-move-money-in-stripe</link><guid isPermaLink="true">https://stripe.dev/blog/your-ai-agent-can-move-money-in-stripe</guid><dc:creator><![CDATA[Daniel Wood]]></dc:creator><pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image3.png"/><link rel="preload" as="image" href="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image5.png"/><link rel="preload" as="image" href="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image1.png"/><p>With Stripe’s MCP server, AI agents can build your checkout page, run financial reports, and automate refunds or price adjustments. Now, agents can even send money to others, using <a href="https://stripe.com/treasury">Stripe Treasury</a>.</p>
<p>Automation makes running your business easier than ever. But how do you stay in control, when an agent can make refunds or payouts for potentially hundreds of dollars?</p>
<p>We’ll cover the two ways to give an agent access to Stripe - acting on your behalf, or as an independent actor - and how Stripe always keeps you in control.</p>
<h2>Connect your agent to Stripe&#x27;s MCP server on your behalf</h2>
<p>The easiest way to get started is to <a href="https://docs.stripe.com/mcp#manual">add Stripe’s MCP to your client</a> and authorize access to Stripe on behalf of your user account. You can select which accounts or sandboxes you want to grant access, and select read or write access to resources in each one. Once you’ve authenticated, your agent will determine which tools to call depending on your task.</p>
<p><img src="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image3.png" alt="Adding Stripe&#x27;s MCP to your client"/></p>
<h2>Confirming sensitive actions</h2>
<p>If your agent makes a refund or payout in live mode, Stripe requires you to confirm the action before money leaves your account. After confirmation, tell your agent to try again so the action can be completed.</p>
<p><img src="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image5.png" alt="Refund daniel.smith@example.com for $65"/></p>
<p>Human confirmation prevents an agent acting on your behalf from making mistakes, and is only required for certain write actions - even if you’ve disabled your client from asking for permission before making tool calls to Stripe.</p>
<h2>Giving your agent its own identity</h2>
<p>Human confirmation keeps you in control when you&#x27;re the one driving. But you need a different control when giving an agent its own identity in Stripe, independent of any one team member. For example, you may create a headless agent to monitor a customer support queue and reply to customer requests for refunds or price adjustments. OAuth doesn’t work here, because it’s tied to your login session, and every confirmation routes to you personally.</p>
<p>To create an agent with its own identity in Stripe, create an agent-tagged API key so it has long-lived, independent access to your Stripe account. Just like regular API keys, agent-tagged API keys support permissions, rotation and expiration, but they are subject to Approval rules, which treat the agent as an independent actor and require approval by designated reviewers for sensitive actions. To get started, <a href="https://docs.stripe.com/keys">create an API key</a> from the Dashboard and select the option of &quot;Giving an AI agent access to operate your account&quot;.</p>
<p><img src="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image2.png" alt="Select the option of &quot;Giving an AI agent access to operate your account&quot;"/></p>
<h2>Approval rules for agents acting on their own</h2>
<p>With <a href="https://docs.stripe.com/account/approvals">Approvals</a>, you can define rules to conditionally require approval from designated approvers before sensitive actions. For a refund bot, that might mean refunds under $50 go through automatically, while refunds over $500 need sign-off from someone on the support team, and no single actor (human or agent) can approve their own request by default.</p>
<p>This is a general-purpose control. It applies to team members and agent keys alike, whether the action comes through the Dashboard or the API. Stripe also ships default rules scoped specifically to agent-tagged keys  -  covering refunds, payouts, and outbound transfers  -  so there&#x27;s a baseline of oversight in place the moment you create the key. From there, you tune it: who reviews, what conditions trigger review, and whether to require approval or block the action outright.</p>
<h2>Create an approval rule</h2>
<p>Setting this up takes a few minutes in the Dashboard:</p>
<ol>
<li>Go to Settings &gt; Approvals &gt; Create rule.</li>
<li>Choose a trigger action, such as Refund is created.</li>
<li>Add a condition, such as Amount &gt; $500.</li>
<li>[Optional] Set the actor condition to agent-tagged API keys (by default, rules apply to all team members and agent keys).</li>
<li>Choose designated reviewers, such as users with the Support Specialist role.</li>
<li>Set the control to Require approval, and activate.</li>
</ol>
<p><img src="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image4.png" alt="Creating an approval rule in the Stripe Dashboard"/></p>
<p>When an agent performs an action that’s subject to an approval rule, the API returns an <code>approval_required</code> error instead of completing the action, and Stripe automatically submits an approval request for review. The agent can optionally provide additional justification.</p>
<pre><code class="language-bash">curl -X POST https://api.stripe.com/v2/core/approval_requests/apreq_123/update \
  -H &quot;Authorization: Bearer sk_live_...&quot; \
  --json &#x27;{&quot;reason&quot;: &quot;Refund requested via support ticket #4821&quot;}&#x27;
</code></pre>
<h2>Reviewing agent requests</h2>
<p>Designated reviewers can approve or deny requests in the Dashboard under Settings &gt; Approvals &gt; <a href="https://dashboard.stripe.com/settings/approvals/requests">Requests</a>. Here, you can see all the details of the request, including a justification provided by the agent summarizing the customer’s request.</p>
<p><img src="https://stripe.dev/images/your-ai-agent-can-move-money-in-stripe/image1.png" alt="Request details in the Stripe Dashboard"/></p>
<p>When a request is approved, Stripe automatically attempts the captured action. The request then transitions to <code>succeeded</code> or <code>failed</code>. When denied, the action is not completed. Requests that haven&#x27;t been approved within 14 days expire automatically.</p>
<h2>Closing the loop by notifying agents about approval</h2>
<p>Your agent can listen for the outcome over webhooks, so that it knows when a request has been approved or denied, and whether the action was successfully completed. These are the supported webhook events:</p>
<pre><code class="language-javascript">v2.core.approval_request.created
v2.core.approval_request.approved
v2.core.approval_request.canceled
v2.core.approval_request.rejected
v2.core.approval_request.expired
v2.core.approval_request.succeeded
v2.core.approval_request.failed
</code></pre>
<h2>How Stripe keeps you in control</h2>
<p>Together, scoped credentials, human confirmation, and configurable approval let you decide which actions an agent may perform automatically and which require review.</p>
<ul>
<li>Confirmation protects you automatically the moment you connect an agent via OAuth  -  no setup required, and it holds even if you&#x27;ve relaxed your own harness&#x27;s safety checks.</li>
<li>Two-party approval is what you design once your agent becomes its own actor  -  deciding exactly which actions need a second set of eyes, and whose eyes those should be.</li>
</ul>
<p>You don&#x27;t have to choose one. Most teams start with the first and layer on the second the moment automation stops being an experiment and starts being infrastructure.</p>]]></content:encoded></item><item><title><![CDATA[Go from idea to company without leaving your development workflow]]></title><description><![CDATA[Stripe Atlas lets you form a company using the same tools you used to build your product, right in the CLI. This post shows you how.]]></description><link>https://stripe.dev/blog/go-from-idea-to-company-with-atlas</link><guid isPermaLink="true">https://stripe.dev/blog/go-from-idea-to-company-with-atlas</guid><dc:creator><![CDATA[Jim Yang]]></dc:creator><pubDate>Mon, 19 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<p>You&#x27;ve built the product, deployed it, and found the first people willing to pay for it. The next step is forming the company behind it.</p>
<p>Now you can begin that process in the same tools you use to build your product. Start an Atlas application from an AI agent through <a href="https://docs.stripe.com/mcp">Stripe&#x27;s Model Context Protocol (MCP) server</a>, or from your terminal with the Stripe Atlas commands available in the tools plugin. Atlas saves your progress, so you can move between your agent, terminal, and the Stripe Dashboard without starting over.</p>
<h2>Bring company formation into your development workflow</h2>
<p>Forming a company often begins in the middle of other technical work. You might be configuring payments, preparing a production launch, or getting ready to hire your first employee. Moving into a separate process means changing context just when momentum matters.</p>
<p><a href="https://stripe.com/atlas">Stripe Atlas</a> sets up your startup so you can focus on building it. Atlas incorporates your startup, retrieves your Employer Identification Number (EIN), initiates founder equity vesting, and files 83(b) tax elections - so you can bank, fundraise, and accept payments with Stripe.</p>
<p>The Atlas integrations bring the start of company incorporation into the workflows developers already use:</p>
<ul>
<li>Use MCP for a conversational workflow. An AI agent can explain the Atlas process, retrieve application requirements, collect company information, and relay validation from Atlas.</li>
<li>Use Stripe CLI for a terminal workflow. Work through structured prompts yourself, or let a coding agent invoke the command and relay each step.</li>
<li>Continue in the Dashboard. Provide sensitive identity information and complete payment, document review, signatures, and submission directly with Stripe.</li>
</ul>
<p>Atlas remains the source of truth in every interface. It determines the application requirements, validates the values you provide, and maintains the application state.</p>
<h2>Start from an AI agent</h2>
<p>MCP gives AI applications a standard way to connect to external tools. When you connect an agent to Stripe&#x27;s MCP server, the agent discovers the Stripe capabilities available to your account and current session.</p>
<p>The recommended way to connect an agent is with Stripe&#x27;s agent plugin. The plugin configures the Stripe MCP server, installs Stripe&#x27;s agent skills, and keeps them up to date:</p>
<pre><code class="language-shell">&gt; npm install -g @stripe/cli@latest
&gt; stripe agent setup
&gt; stripe plugin install tools
</code></pre>
<p>The setup command detects supported agents installed on your computer and configures them for you. This works with agent development environments such as Claude Code and Cursor.</p>
<p>You can also <a href="https://docs.stripe.com/mcp">connect an agent to Stripe MCP</a> directly. For example, to add Stripe MCP to Claude Code, run:</p>
<pre><code class="language-shell">&gt; claude mcp add --transport http stripe https://mcp.stripe.com/
</code></pre>
<p>Then run <code>/mcp</code> in Claude Code. Claude Code opens a browser where you can sign in to Stripe and authorize the connection. For Cursor, VS Code, and other MCP clients, follow the client-specific setup instructions or configure <a href="https://mcp.stripe.com/">https://mcp.stripe.com</a> as a remote MCP server.</p>
<p>After you authorize the connection, you can describe the outcome you want instead of looking for a particular tool or command:</p>
<pre><code class="language-shell">&gt; I&#x27;m ready to incorporate my company with Stripe Atlas. There are two founders, and we plan to raise venture funding.
</code></pre>
<p>The agent creates an Atlas application and identifies the Stripe account associated with it. It then asks you to authorize access to that account before continuing. Atlas uses the information saved in the application to suggest what to collect next. The order can vary based on what you&#x27;ve already provided, and you can return to an earlier answer or add another founder before completing the application.</p>
<h2>Follow an application from prompt to incorporation</h2>
<p>Suppose you and a cofounder have built ElementraAI, a monitoring product for AI applications. The product is live, the first customers are using it, and you&#x27;re preparing to raise funding. You decide to incorporate ElementraAI Labs while working in Claude Code.</p>
<p><em>Note: The following conversation is illustrative. The questions can change depending on the company structure and information already saved in the application.</em></p>
<pre><code class="language-shell">&gt; I want to incorporate my new company, ElementraAI Labs. We build monitoring tools for AI applications. There are two founders, and we want to form a Delaware C corporation.

# The agent first confirms the structure you&#x27;ve chosen:
&gt; Atlas supports Delaware C corporations and LLCs. You selected a Delaware C corporation. Do you want me to record that choice?

# You confirm:
&gt; Yes, form a Delaware C corporation.

# The agent can explain how Atlas represents your choice, but it shouldn&#x27;t choose a structure based on your fundraising plans. Entity type, ownership, and tax treatment can have legal or financial consequences, so you remain responsible for those decisions.
&gt; Add the company details

# The agent collects the information Atlas needs about the company:
&gt; What legal company name do you want to use?
&gt; What will your company do?
&gt; Does the company have a website?
&gt; What phone number and business address should the application use?

# You answer:
&gt; The legal name is ElementraAI Labs, Inc. We build monitoring and debugging tools for teams developing AI applications. Our website is elementraai.example.

# Atlas validates each value before saving it. If a website, phone number, or address isn&#x27;t valid, the agent relays the validation and asks you to correct it. For example:
&gt; Atlas couldn’t validate elementraai.example. Enter the complete website URL, including https://.

&gt; https://elementraai.example

# The agent sends the corrected value to Atlas and relays the validation result.

# Next, the agent asks about the people forming the company:
&gt; What are the names and email addresses of the founders?
&gt; Will either founder serve on the board?

&gt; The founders are Maya Chen and Jordan Williams. Maya will be the primary representative, and both founders will serve on the board.

# Atlas requires exactly one founder to be designated as the representative. If neither founder (or both founders) are selected, the agent explains what needs to change before the application can proceed.

# For a C corporation, the agent asks for the founders&#x27; ownership and company roles:
&gt; What percentage of the company will each founder own?
&gt; What percentage do you want to reserve for the employee equity pool?
&gt; Who will serve as CEO and president? Who will serve as secretary?
&gt; What vesting schedule have the founders chosen?

&gt; Maya will own 45%, Jordan will own 45%, and we’ll reserve 10% for the employee equity pool. Maya will serve as CEO and president, and Jordan will serve as secretary. Both founders will use four year vesting schedules with a one-year cliff beginning on the incorporation date.
</code></pre>
<p>The agent records the decisions you provide. It doesn&#x27;t propose an ownership split or vesting schedule as the right choice for your company.</p>
<h3>Review the application</h3>
<p>Before sending an update to Atlas, the agent shows you the values included in the update and asks you to confirm them. You can review the company name, description, founder count, and other collected information, and correct any value before confirming.</p>
<p>After you confirm the update, Atlas validates the values and returns the current application, including its company, founders, equity, status, and next action.</p>
<h2>Continue securely with Stripe</h2>
<p>After the application passes validation, Atlas provides a link to continue in the Stripe Dashboard. Each founder provides sensitive identity information directly to Stripe, reviews the formation documents, pays, signs, and submits the application.</p>
<p>The agent has helped move you from an initial request to a validated Atlas application, but it hasn&#x27;t made legal or tax decisions or submitted the company on your behalf. Your progress remains available in Atlas, so you can continue in the Dashboard or another authorized interface.</p>
<h2>Start from the Stripe CLI</h2>
<p>If you prefer to work in a terminal, install the <a href="https://docs.stripe.com/cli/tools">tools plugin for the Stripe CLI</a>:</p>
<pre><code class="language-shell">&gt; stripe plugin install tools
</code></pre>
<p>Then start an application:</p>
<pre><code class="language-shell">&gt; stripe tools search atlas
&gt; stripe tools create_atlas_application
</code></pre>
<p>The plugin reuses your current Stripe CLI session when possible. If you aren&#x27;t signed in, it prompts you to authenticate with Stripe login.</p>
<p>The command starts an Atlas flow that collects and validates company and founder information. You can respond to the prompts directly or ask a coding agent to run the command for you:</p>
<pre><code class="language-shell">&gt; Let’s form a company using Stripe Atlas. Use the Stripe tools plugin and search for Atlas commands.
</code></pre>
<p>Stripe CLI handles authentication and communicates with Atlas while the agent provides a conversational layer around the terminal flow. The CLI supports Delaware C corporation and LLC applications, including applications with multiple founders.</p>
<p>Because MCP, Stripe CLI, and the Dashboard operate on the same Atlas application, you don&#x27;t need to finish in the same interface you started with. For example, you can begin the ElementraAI Labs application with Claude Code, continue through Stripe CLI, and open the Dashboard when it&#x27;s time to complete sensitive steps.</p>
<h2>Continue after formation</h2>
<p>After you submit the application, Atlas sends a receipt and keeps you informed as formation progresses. Return to the Dashboard to check the application status, access documents, and complete post-formation steps.</p>
<p>Depending on the company and founders, those steps can include <a href="https://support.stripe.com/questions/how-to-check-your-ein-status-with-the-irs">obtaining an EIN</a> and <a href="https://support.stripe.com/questions/atlas-filing-your-83%28b%29-election-using-auto-83%28b%29">filing an 83(b) election</a>. Atlas provides the relevant workflow and documentation when those steps apply. Atlas also includes benefits that can help new companies get started, including $2,500 in Stripe product credits during the first year and access to more than $50,000 in partner offers.</p>
<h2>Start where you build</h2>
<p>The Atlas integrations for MCP and Stripe CLI connect the work of building a product with the work of forming the company behind it. Start with a plain language request to an agent or a command in your terminal, review the information before it reaches Atlas, and continue in the Stripe Dashboard for sensitive information, payment, signatures, and submission.</p>
<p><a href="https://stripe.com/atlas">Learn more about Stripe Atlas.</a></p>]]></content:encoded></item><item><title><![CDATA[Scaling Radar: Fighting fraud with agent-assisted machine learning]]></title><description><![CDATA[How Stripe scaled fraud detection and improved it with rapid agent-assisted experimentation for the Radar product.]]></description><link>https://stripe.dev/blog/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning</link><guid isPermaLink="true">https://stripe.dev/blog/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning</guid><dc:creator><![CDATA[Ryan Drapeau]]></dc:creator><pubDate>Mon, 19 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image3.png"/><p>Stripe Radar, our fraud prevention solution, helps businesses block fraud while letting legitimate customers pay. Its models draw on connections across the Stripe network. For example, a credit card that is new and untrusted to one business might have years of history elsewhere on Stripe that proves it’s OK or an IP address may link activity across several cards and accounts. Shield is one of those models and focuses on transaction fraud. It learns representations of these core signals, combines them to predict fraud, and scores payments in milliseconds. See <a href="https://stripe.dev/blog/how-we-built-it-stripe-radar">our previous post</a> if you’d like to learn more about how we initially built it.</p>
<p>We wanted Shield to catch more fraud patterns specific to particular businesses, products, and countries without flagging legitimate payments that happened to look unusual. But even with roughly 800 million transactions in its training set, Shield learned from only a fraction of the available history: we discarded most payments with no reported fraud to keep training efficient. We hypothesized that fuller histories would help Shield distinguish fraud from legitimate activity that was common for a particular card or business, even if it was unusual across the network.</p>
<p>Training on more of the network would stretch both our infrastructure and how we developed models. A single training pass through the data could take a day. The recent payments we needed to learn from often had incomplete fraud reports, making it hard to tell whether the model was improving. Investigating those questions meant running more experiments, each requiring ML engineers to prepare data, monitor training, and debug failures.</p>
<p>Learning from more of the Stripe network required faster training and a better understanding of delayed fraud reports. We also built tools for AI agents to investigate missed fraud and run experiments, using model explanations and results from earlier investigations to test changes to Shield. Read on to learn how we scaled our training approaches and automated more of the experiment lifecycle with agents, improving our model’s recall by over 8%.</p>
<h2>Scaling Radar</h2>
<p>For each week of payment data, our training pipeline kept every known fraudulent payment and randomly selected a subset of the remaining payments. This downsampling lets regular retraining finish more quickly. Training on a larger fraction of the network would give the model more examples of less common activity and more data for learning the entity representations of cards, businesses, and other entities.</p>
<p>For the first experiment, we removed downsampling and included all eligible payments from a nine-month window. That expanded the training set from roughly 800 million to 11 billion transactions. The results were encouraging: after one pass through the data, the model was already close to the existing model&#x27;s performance. By the third pass, it had surpassed it on our initial evaluation.</p>
<p>Each pass, or epoch, took about 24 hours. We wanted to run multiple experiments a week and work toward testing new ideas daily. At that rate, even a three-epoch comparison required roughly three days of training. Testing another feature or training configuration meant waiting days for another result, which made it too slow to explore ideas.</p>
<h3>Keeping the GPUs busy</h3>
<p>We optimized, shortening each epoch from 24 hours to 4.8 hours (an 80% reduction) while keeping the dataset fixed at 11 billion examples. Keeping the GPUs busy required tuning data loading, computation, and communication together; speeding up one made the limits of the others easier to see.</p>
<p><img src="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image1.png" alt="Chart showing training time per epoch dropping from 24 hours to 4.8 hours across four optimization stages: initial implementation, streaming from S3, compiling and parallelizing, and optimizing data movement."/></p>
<p>Our training pipeline downloaded data from S3 to disk for the data loaders to read. At this scale, the dataset couldn’t be cached in memory, so disk throughput limited how quickly we could supply the GPUs. We changed the data loaders to stream from S3 into memory, which cut time per epoch in half, to 12 hours.</p>
<p>We compiled the tensor operations in Shield&#x27;s training step with PyTorch&#x27;s <code>torch.compile</code> and tuned the compiler configuration. We also used lower-precision arithmetic to speed up computation. Shield&#x27;s <a href="https://arxiv.org/abs/1611.05431">ResNeXt</a> architecture contains parallel branches; executing them concurrently, along with improvements to CPU-to-GPU transfers, brought the time down to seven hours.</p>
<p>Memory use constrained how much data we could prepare before the GPUs. Cutting peak training memory from 1.3 TB to 500 GB let us increase the number of data-loading workers per GPU and prefetch more data. Compressing gradients to BF16 during communication between GPUs, tuning the communication bucket size, and using asynchronous CPU-to-GPU transfers brought the final epoch time to 4.8 hours.</p>
<p>The larger dataset also produced a wider embedding layer. The model grew to roughly 30 million parameters, three times its previous size, without increasing serving latency in our load tests or production scoring. We could now train at the scale we wanted and still make a decision quickly enough to meet our latency constraints.</p>
<p>Unfortunately, the larger model initially looked better, but that result changed as more fraud reports arrived.</p>
<h3>Evolving labels</h3>
<p>The new model looked better in offline tests and in early results of a production experiment. But, as more fraud reports arrived, its measured performance fell below the earlier model&#x27;s, and we had to roll back to a model trained with the earlier sampling strategy.</p>
<p>For a payment made with a stolen card, it could take weeks for the cardholder to notice and report it to their bank. When Stripe receives the fraudulent dispute, we gain a fraud label for a payment we scored weeks earlier. We assigned labels in our training datasets based on the fraud reports available at the time. The most recent weeks of training data contained the most immature labels as not enough time had passed for reports to arrive.</p>
<p>We had to balance how quickly Shield learned new fraud patterns against how much we could trust the labels. Recent payments helped the model keep up with attackers, but including too many meant training on fraud incorrectly labeled as legitimate. Waiting for reports gave us more reliable labels at the cost of learning new behavior later.</p>
<figure>
  <img src="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image2.png" alt="Line chart showing the cumulative share of fraudulent disputes reported over time, reaching 41% by day 14, 66% by day 30, and 86% by day 60 after the payment."/>
  <figcaption>Fraud reports arrive gradually as seen in this cumulative distribution. Payments that appear legitimate in a recent training or evaluation dataset can acquire fraud labels weeks later.</figcaption>
</figure>
<p>The pool of payments we downsampled contained both legitimate payments and fraud that had not been reported yet. Keeping only a fraction of that pool also kept most of the mislabeled fraud out of training. When we tried removing downsampling, we added more legitimate examples, as intended, but also more fraudulent examples labeled as legitimate, about 20 times more. The number of known fraud examples stayed the same, because we already kept all of them.</p>
<p>The model consequently saw many more examples teaching it that late-reported fraud patterns were legitimate, particularly in the most recent weeks of training. It became worse at detecting fraud that would only be reported weeks later. Understanding failures like this required repeated experiments with Shield&#x27;s data and training. Faster training made those experiments more practical, but each still took substantial engineering work to get from a hypothesis to a result.</p>
<h2>Giving agents the experiment lifecycle</h2>
<p>Each experiment followed a familiar machine learning engineering cycle: investigate a failure, form a hypothesis, implement a change, and evaluate it. Preparing training data, monitoring jobs, and debugging failures took time in every experiment.</p>
<p>We built Agentic MLE, short for machine learning engineer, to take on more of that work. It’s a set of tools and instructions that lets AI agents operate in Stripe&#x27;s existing ML infrastructure, carrying an experiment from an idea to a result: explore the data, implement a feature, compute its historical values, train a model, and evaluate it against a baseline.</p>
<p><img src="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image4.png" alt="Diagram of the ML experiment lifecycle as a loop: explore data, prototype features, compute training data, train and evaluate model with features, and deploy feature with updated model."/></p>
<p>Agents work across the experiment lifecycle. Engineers review hypotheses and results and decide what to deploy.</p>
<p>Feature experiments are built on <a href="https://stripe.dev/blog/shepherd-how-stripe-adapted-chronon-to-scale-ml-feature-development">Shepherd</a>, our feature platform, which computes historical training features and serves their online equivalents from the same definitions.</p>
<p>As with our work on <a href="https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2">minions</a>, we needed to make our operational knowledge available to the agents. They need to have the right datasets, entity keys, time stamps, and sampling rules for feature experiments, be able to reproduce knowledge at the time of payments for historical feature backfills, and diagnose failed distributed training jobs before rerunning them. We organized this knowledge into reusable procedures for the platform and model-specific documentation that an agent loads for the task at hand.</p>
<p>Agentic MLE uses tools to query data, inspect workflow executions, and read experiment results. It writes the code for a candidate feature and runs the jobs needed to test it. Engineers review the proposed experiment and its results at defined points. Within a run, it inspects failures, correct configurations, and retries failures as a human would have done.</p>
<h3>Learning from a fraud attack</h3>
<p>We put those tools to work on a fraud attack in which Shield was assigning low risk scores to fraudulent payments. We gave the agents attack data and results from earlier experiments and investigations into Shield&#x27;s behavior, including our scaling work. An agent used model explanations to identify which features pushed scores higher or lower on the missed fraud, giving us testable hypotheses. We could remove features that made the traffic look safe, or make combinations of suspicious activity more explicit. Humans helped prioritize 38 ideas, then agents implemented the changes, trained models, debugged failed runs, and evaluated the results.</p>
<p>Several agents proposed experiments with stochastic weight averaging, or SWA, which averages parameter snapshots from a training run into a single model. Shield already used SWA, but began averaging over halfway through the run. Training loss was falling while validation loss rose, giving agents a reason to test whether including earlier snapshots could reduce overfitting.</p>
<p>Stopping training early improved overall ranking but reduced recall in our narrow false-positive range. The best results combined averaging at epoch 0 and shortening the training run to eight epochs.</p>
<p><img src="https://stripe.dev/images/scaling-radar-fighting-fraud-with-agent-assisted-machine-learning/image3.png" alt="Diagram comparing two stochastic weight averaging configurations: the original configuration averages epochs 8-13 over a 14-epoch run, while the winning configuration averages epochs 0-7 over a shortened 8-epoch run."/></p>
<p>In a controlled comparison, the new configuration improved recall by over 8%, translating to an estimated tens of millions of dollars a year in additional fraud prevention for Stripe’s merchants.</p>
<h2>Where we go next</h2>
<p>We learn from each experiment, especially ones that do not lead to production, and use those learnings to improve our models and systems. The infrastructure improvements that sped up our training enabled us to rapidly test a wide range of hypotheses through Agentic MLE. Our goal is for agents to carry out longer investigations between reviews, while engineers set priorities, evaluate the evidence, and decide what to release.</p>
<p>We&#x27;re hiring engineers to help build these ML systems and infrastructure. If you&#x27;d like to work on these problems, <a href="https://grnh.se/b5wzjpge1us?query=engineer">explore our engineering roles</a>.</p>]]></content:encoded></item><item><title><![CDATA[Run recurring jobs on Stripe without a cron server]]></title><description><![CDATA[Stripe Workflows already could react to events and run on demand. Now, it can start a workflow on its own at a time you specify.]]></description><link>https://stripe.dev/blog/run-recurring-jobs-on-stripe-workflows</link><guid isPermaLink="true">https://stripe.dev/blog/run-recurring-jobs-on-stripe-workflows</guid><dc:creator><![CDATA[Tanya Boiteau]]></dc:creator><pubDate>Tue, 13 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image3.png"/><link rel="preload" as="image" href="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image1.png"/><p>When a customer&#x27;s renewal payment fails, their subscription moves to past due while Stripe retries the payment. Retries recover some of these payments on their own, but your collections team usually wants to contact the others before the retries run out. So every weekday at 9:00 AM, someone on your finance team opens the Stripe Dashboard, filters for past-due subscriptions, and copies each one into a Slack channel so the team knows who to contact. On a quiet day, it&#x27;s a small chore. On a busy day, it doesn&#x27;t happen at all.</p>
<p>Nobody notices the skipped day until the retries run out, and a customer who would have updated their card after one friendly message has churned instead. The check itself is predictable: the same list, the same filters, and the same message, every morning. What&#x27;s unpredictable is whether a person remembers to run it.</p>
<p>This pattern shows up across finance and operations teams. Daily balance checks, weekly payout reports, and month-end reconciliation all depend on the calendar, not on something happening in your account. <a href="https://docs.stripe.com/workflows">Stripe Workflows</a> already could react to events and run on demand. Now, it can start a workflow on its own at a time you specify.</p>
<p>The usual fix: a cron job</p>
<p>Teams that want to automate a recurring check usually end up writing a scheduled job. A typical version runs on your own infrastructure, lists past-due subscriptions through the Stripe API, and posts each one to Slack through an incoming webhook:</p>
<pre><code class="language-js">// past-due-subscriptions.js, run by cron on a UTC server: 0 16 * * 1-5
const stripe = require(&#x27;stripe&#x27;)(process.env.STRIPE_SECRET_KEY);

async function main() {
  for await (const subscription of stripe.subscriptions.list({
    status: &#x27;past_due&#x27;,
    expand: [&#x27;data.customer&#x27;],
    limit: 100,
  })) {
    await fetch(process.env.SLACK_WEBHOOK_URL, {
      method: &#x27;POST&#x27;,
      headers: { &#x27;Content-Type&#x27;: &#x27;application/json&#x27; },
      body: JSON.stringify({
        text: `Subscription for ${subscription.customer.email} is past due: https://dashboard.stripe.com/subscriptions/${subscription.id}`,
      }),
    });
  }
}

main().catch((err) =&gt; {
  console.error(err);
  process.exit(1);
});
</code></pre>
<p>The script is short, but the system around it isn&#x27;t. You need a server or a scheduled function to run it, a place to store a Stripe secret key and a Slack webhook URL, and a deploy process for every change to the message. Time zones are your problem too. A cron expression on a UTC server doesn&#x27;t follow daylight saving time, so a job set for 9:00 AM in Los Angeles runs at 8:00 AM local time for part of the year. If the job fails, it often fails silently. You find out when someone asks why the channel has been quiet for a week.</p>
<p>The script also lives outside Stripe, and usually outside the finance team&#x27;s reach. If the collections lead wants to change the channel, add the customer&#x27;s name to the message, or check twice a day instead of once, they file a ticket with engineering. A 9:00 AM check that should belong to the team that relies on it ends up depending on someone else&#x27;s sprint.</p>
<h2>Introducing recurring schedule triggers in Stripe Workflows</h2>
<p>Stripe Workflows now supports <a href="https://docs.stripe.com/workflows/triggers#recurring-schedule-triggers">recurring schedule triggers</a>. You choose when a workflow runs, such as every weekday at 9:00 AM, every other Monday, or the last day of each month, and Stripe starts a run at each scheduled time. There&#x27;s no server to run, no cron expression to maintain, and no API key to store.</p>
<p>A recurring schedule is one of three trigger types that Stripe Workflows supports:</p>
<ul>
<li>Event triggers run when something happens in your account, such as a payment succeeding or a dispute being created.</li>
<li>Recurring schedule triggers run at the times you set.</li>
<li>On-demand triggers run when you start them from the Dashboard or call the API.</li>
</ul>
<p>Scheduled workflows pair well with list actions and loops. A common pattern is to schedule the workflow, retrieve a list of objects, and loop over that list to act on each item, which is the shape of the past-due subscription check.</p>
<p>Because the workflow lives in the Dashboard, the team that owns the process can read it, change it, and see every run.</p>
<h2>Walkthrough: notify your team about past-due subscriptions</h2>
<p>The past-due subscription check uses a recurring schedule trigger, a list action, and a loop. Inside the loop, the workflow looks up the customer, skips subscriptions the team already knows about, sends a Slack notification, and records the notification in the subscription&#x27;s metadata.</p>
<p><img src="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image2.png" alt="A recurring schedule workflow diagram"/></p>
<ol>
<li>Set the schedule</li>
</ol>
<p>In the workflow builder, click Add a trigger, then select Tools, where recurring schedule and on-demand triggers live, and choose Recurring schedule. Set Repeat every to 1, select Week, and select Monday through Friday under Days of the week. Set Starting to the date and time of the first run, and choose a Time zone, such as America - Los Angeles. The workflow runs at the time in Starting on each scheduled day, beginning with the first scheduled time on or after it. After you click Done, the trigger shows a summary so you can confirm the schedule before you publish.</p>
<p><img src="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image3.png" alt="Setting the recurring schedule"/></p>
<p>Schedules can run as often as every hour or as rarely as once a year. They follow the local clock, so a 9:00 AM workflow runs at 9:00 AM all year, and the Triggers docs cover the hour when clocks change.</p>
<ol start="2">
<li>List the subscriptions</li>
</ol>
<p>Add a List subscriptions action and set the status filter to <code>past_due</code>. A subscription stays past due until a payment succeeds or the retries run out, so the same subscription shows up every morning until it&#x27;s resolved.</p>
<ol start="3">
<li>Look up the customer</li>
</ol>
<p>List subscriptions returns the customer&#x27;s ID, not their email, so add a Retrieve a customer action and set its customer ID to the current subscription&#x27;s customer. Because this action references a field from the list results, the builder adds a For each item in the Subscriptions loop, and every step after it runs once per subscription.</p>
<ol start="4">
<li>Skip subscriptions the team already knows about</li>
</ol>
<p>Because past-due subscriptions show up every morning, the workflow needs to remember which ones it already reported. It does that with a metadata key, <code>collections_notified_invoice</code>, that the last step in the loop writes after the Slack message goes out. You don&#x27;t create the key ahead of time, so on the first run, it&#x27;s empty for every subscription.</p>
<p>Inside the loop, add a condition. For the field, choose Subscription, then Metadata, and enter <code>collections_notified_invoice</code> as the key. Set the operator to isn&#x27;t equal to, and for the value, insert Subscription | Latest invoice ID. Put the next two steps on the If this condition is met branch.</p>
<p><img src="https://stripe.dev/images/run-recurring-jobs-on-stripe-workflows/image1.png" alt="Adding a condition"/></p>
<p>On the first run, the empty key isn&#x27;t equal to the latest invoice ID, so the team gets notified. The next morning, the key holds that invoice ID, so the loop skips the subscription. If the subscription later goes past due on a new invoice, the IDs differ again and the team hears about it. A yes-or-no flag wouldn&#x27;t work, because it stays set after the first notification and hides every later one.</p>
<ol start="5">
<li>Notify the team</li>
</ol>
<p>On that branch, add another action, click Apps, and under Slack, choose Send Slack Notification. If you haven&#x27;t installed the Slack app, the builder prompts you to install it from the <a href="https://marketplace.stripe.com/apps/slack-workflows">Stripe App Marketplace</a> and connect your Slack workspace. Choose a channel, such as #collections, write a message template that includes the customer&#x27;s email and the subscription ID, and add a Dashboard link to the subscription so the team can open it from Slack.</p>
<ol start="6">
<li>Record the notification</li>
</ol>
<p>Finally, on the same branch, add an Update subscription action that sets <code>collections_notified_invoice</code> to the subscription&#x27;s latest invoice ID. Anyone who opens the subscription can then see that the collections team has already been notified.</p>
<p>The loop handles pagination for you. If an action fails for one subscription, the loop stops there, and run details show which subscriptions were processed. Any subscription the loop didn’t reach gets picked up on the next run. If the Slack notification succeeds but the metadata update fails, the workflow might notify the team about that subscription again. That’s why the Slack step comes first - a duplicate message is better than a missed one. Each action inside a loop counts once per item. Retrieve a customer runs for every past-due subscription, but the condition limits the Slack and update steps to the ones that are new.</p>
<h2>Monitor and manage the schedule</h2>
<p>After you publish, the workflow&#x27;s page shows Next run, and Recent runs lists every run with its status. Click a run to see each step&#x27;s input and output and, for a failed run, which step failed and why. To get alerted, create a second workflow triggered by the Workflow run failed event. Search for it in the trigger picker, or find it under More &gt; Advanced &gt; Workflow run. Then have it send a Slack notification to a different channel or Email a team member. To stop on a date, set Ending under Advanced. To pause, deactivate the workflow. Times missed while it&#x27;s inactive are skipped.</p>
<p>A scheduled workflow runs only on its schedule, so you can&#x27;t start it by hand. To test it, build it in a sandbox, set Starting a few minutes ahead, and check Recent runs. To run the same check on demand, create a separate workflow with an on-demand trigger.</p>
<h2>What changes for your team</h2>
<p>Recurring schedule triggers move calendar-based work into the same place as the rest of your Stripe automation. The past-due subscription check runs every weekday at 9:00 AM local time whether or not anyone remembers it, each past-due subscription reaches the collections team once, and the subscription itself records that the team was notified.</p>
<p>There&#x27;s no server, secret key, or daylight saving time logic to maintain. The team that relies on the check can change the channel, the message, or the schedule themselves, and when something goes wrong, the run shows which step failed and why.</p>
<p>Recurring schedule triggers are available in Workflows today. To build your first scheduled workflow, go to Workflows in the Dashboard.</p>]]></content:encoded></item><item><title><![CDATA[Fine-tuning LLMs for risk assessment]]></title><description><![CDATA[SFT helps Stripes make more precise risk assessments. We explain the training approach and investigate what the model learns about legitimate businesses.]]></description><link>https://stripe.dev/blog/training-llms-for-risk-assessment</link><guid isPermaLink="true">https://stripe.dev/blog/training-llms-for-risk-assessment</guid><dc:creator><![CDATA[Hangzhi Guo]]></dc:creator><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/training-llms-for-risk-assessment/image2.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/training-llms-for-risk-assessment/image4.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/training-llms-for-risk-assessment/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/training-llms-for-risk-assessment/image3.png"/><blockquote>
<p>This is the first of two posts on fine-tuning LLMs for risk assessment. Here, we focus on learning from labels; the second post will explore learning from explanations.</p>
</blockquote>
<h2>High-stakes risk assessment</h2>
<p>Stripe powers millions of businesses moving trillions of dollars annually while operating self-serve, globally adopted, financial infrastructure. To achieve this safely, we make thousands of risk decisions every single second. Is this transaction legitimate? Is the business trustworthy? Is this product set allowed by this financial partner? Has this business become suddenly popular, or is it under attack? Should we adjust a business’ credit reserves?</p>
<p>A false negative lets through fraud and abuse, reducing trust and making the internet economy less safe . A false positive can stymie legitimate economic activity and meaningfully affect a business’ livelihood. Balancing these risks, in near real-time at high precision, requires models to connect patterns in our data with an understanding of how the business operates in the wider economy.</p>
<p>Several properties of LLMs make them well suited to these risk decisions. LLMs bring world knowledge from pretraining that helps interpret Stripe’s internal data in the context of real-world business practices. LLMs also provide a flexible way to integrate heterogeneous features, including numerical, categorical, text, and time-series data. Combining these inputs in conventional tabular or sequence models often requires feature engineering, type-specific encodings, or specialized architectures. With LLMs, we can serialize these features into a shared text representation and process them with a single model, enabling it to reason jointly over different feature types.</p>
<figure>
  <img src="https://stripe.dev/images/training-llms-for-risk-assessment/image2.gif" alt="Serializing business features into LLM input"/>
  <figcaption><strong>Figure 1.</strong> Serializing business features into LLM input. A feature serializer converts heterogeneous features into a text-based business record that an LLM can reason over to assess risk.</figcaption>
</figure>
<p>The problem is that LLMs are word prediction machines, and are not designed for the reliably rigorous statistical analysis Stripe needs as inputs to our risk decisions.</p>
<p>We confirmed this intuition in early testing by asking a model to assess the likelihood that a business was fraudulent. We compared zero-shot prompting, which relied solely on the model’s pretraining, with domain-guided prompting where we made Stripe’s review criteria explicit, including which signals to consider and how to interpret them in context.</p>
<p>For each business, we collected the features used in human reviews, including card payments, money movement, and account activity, and serialized them into a text-based account record (see Figure 1). The model produced a verbalized probability of fraud, which we used as the risk score (<a href="https://aclanthology.org/2023.emnlp-main.330/">Tian et al. 2023</a>). This continuous score allowed us to rank accounts and set thresholds for routing them to human reviewers, balancing fraud detection against disruption to legitimate businesses.</p>
<p>The LLMs performed poorly against human review. While domain-guided prompting outperforms zero-shot, it fails to reach the human reviewer’s precision at the same recall. Both model predictions and initial human-review decisions are evaluated against labels that incorporate subsequent evidence and outcomes. It’s worth noting that for these results, and the others shared below, that fraud prevalence and the mix of cases affect precision, so results on accounts selected for review should not be read as performance across all Stripe businesses.</p>





















<table><thead><tr><th><strong>Method</strong></th><th><strong>Precision @ Human-Review Recall</strong></th></tr></thead><tbody><tr><td>Zero-shot</td><td>0.487</td></tr><tr><td>Domain-guided prompting</td><td>0.706</td></tr><tr><td>Human review</td><td>0.790</td></tr></tbody></table>
<p>So how can we get a word predictor to natively conduct and output high quality statistical analysis?</p>
<h2>Supervised fine-tuning (SFT)</h2>
<p>To fit an LLM into this analytical structure, we explored labels-only supervised fine-tuning (SFT) of an open-weight 4B-parameter LLM. Unlike prompting, SFT updates the model’s weights to predict each account’s review label from its serialized record. Let $$x_i$$ be the state of the business’s account $$i$$, $$s(x_i)$$ its text serialization, and $$y_i \in {0,1}$$ the review label, where $$y_i = 1$$ denotes fraud. The training dataset is $$\mathcal{D} = {(s(x_i), y_i)}_i$$. The target response contains only the label $$y_i$$, so the objective reduces to the negative log-likelihood of that label:</p>
<p>$$
\theta^* = \underset{\theta}{\arg\min}; \mathbb{E}<em>{(s(x_i), y_i) \sim \mathcal{D}} \left[-\log p</em>{\theta}!\left(y_i \mid s(x_i)\right)\right]
$$</p>
<p>Although the model is trained to output a discrete label, we can derive a continuous risk score from its next-token distribution. For single-token class labels, we normalize the probabilities of the fraud and non-fraud tokens at the answer position. If $$\ell_1$$ and $$\ell_0$$ are the log probabilities of the fraud and non-fraud label tokens, the fraud score is</p>
<p>$$
r(x) = \frac{e^{\ell_1}}{e^{\ell_1} + e^{\ell_0}}
$$</p>
<p>This score lets us rank accounts and choose a decision threshold. Unlike the prompted baseline, which generates a numerical risk estimate as text, this approach derives the score directly from the label-token probabilities.</p>
<p>For example, suppose fraud is encoded as yes and non-fraud as no, each represented by a single token. If the model assigns probability 0.18 to <code>yes</code>, 0.72 to <code>no</code>, and 0.10 to all other tokens, normalizing over the two valid labels yields a fraud score of 0.18 / (0.18 + 0.72) = 0.20 (see Figure 2 for illustration). Rather than retaining only the predicted label, we use the relative probability assigned to each class to obtain a continuous score.</p>
<figure>
  <img src="https://stripe.dev/images/training-llms-for-risk-assessment/image4.gif" alt="Computing a fraud score from the next-token distribution"/>
  <figcaption><strong>Figure 2.</strong> Illustration of computing a fraud score from the next-token distribution.</figcaption>
</figure>
<p>And how does this adapted model perform relative to our human reviewers?</p>
<figure>
  <img src="https://stripe.dev/images/training-llms-for-risk-assessment/image1.png" alt="Precision-recall curves on a selected fraud-review cohort"/>
  <figcaption><strong>Figure 3.</strong> Precision-recall curves on a selected fraud-review cohort.</figcaption>
</figure>
<p>The fine-tuned 4B-parameter model achieved higher precision against historical review labels, achieving approximately 24% higher average precision than domain-guided prompting and 70% higher than zero-shot prompting. These results suggest that Stripe’s risk distribution differs from the broader pretraining distribution. Injecting domain knowledge through context helps bridge that gap, but fine-tuning on our internal data captures nuances that cannot be exhaustively conveyed in written guidelines.</p>
<h3>Does SFT learn new knowledge?</h3>
<p>The gains in decision accuracy alone do not reveal whether SFT changes how the model represents risk signals, such as suspicious payment patterns or legitimate business activity. To investigate this, we compared the internal representations of this open-weight 4B with and without training on risk review data. We used linear probing (<a href="https://arxiv.org/abs/1610.01644">Alain and Bengio, 2016</a>) to measure how risk-relevant concepts could be linearly decoded from each model’s hidden representations. For each model, we extracted the final layer’s hidden state at the answer-prefill position, then trained logistic regression classifiers on these frozen representations.</p>
<p>We probed for 44 concepts using 34 binary and 10 multiclass classification targets, including risk and benign signals, account metadata, business size, case types, and evidence sufficiency. Probe labels came either from the source dataset or from the teacher-model annotations. The benign concepts capture characteristics associated with legitimate businesses, such as a consistent business description, a credible online presence, or an established processing history. Their absence isn&#x27;t a risk signal; it only means that evidence isn&#x27;t there. Risk signals are the fraud patterns reviewers flag during business review.</p>
<figure>
  <img src="https://stripe.dev/images/training-llms-for-risk-assessment/image3.png" alt="Linear-probe ROC-AUC before and after SFT"/>
  <figcaption><strong>Figure 4.</strong> Linear-probe ROC-AUC before and after SFT for benign signals, risk signals, and attribute groups.</figcaption>
</figure>
<h4>SFT makes benign signals more accessible</h4>
<p>Figure 4 shows that linear-probe ROC-AUC improves more for benign signals (0.583 -&gt; 0.642) than for risk signals (0.702 -&gt; 0.729). Before SFT, benign signals are close to chance (0.5) in the base model&#x27;s representations, so the model carries little information about what a legitimate business looks like. After SFT, eight of the nine benign signals become easier to recover, including a consistent business description (0.614 -&gt; 0.707) and an established processing history (0.644 -&gt; 0.712).</p>
<p>These results suggest that SFT helps the model recognize when suspicious-looking activity makes sense for a legitimate business. A model that better recognizes legitimate businesses is less likely to flag them, which aligns with the higher precision at the same recall in Figure 3 and reduces false positives.</p>
<h3>SFT improves risk assessments across tasks</h3>
<p>Across multiple risk assessment tasks at Stripe, supervised fine-tuning increased precision by more than 21% at the same recall and consistently outperformed XGBoost. These results make SFT a strong foundation for production risk systems that require both precise risk evaluations and the flexibility to use rich, heterogeneous evidence.</p>]]></content:encoded></item><item><title><![CDATA[Creating a whitelabeled connected account dashboard with embedded components]]></title><description><![CDATA[This post shows users how to build a whitelabeled dashboard for connected accounts with just a few lines of code by using Connect embedded components.]]></description><link>https://stripe.dev/blog/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components</link><guid isPermaLink="true">https://stripe.dev/blog/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components</guid><dc:creator><![CDATA[Jorge Aguirre Gonzalez]]></dc:creator><pubDate>Fri, 02 Oct 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image5.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image9.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image7.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image3.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image6.png"/><link rel="preload" as="image" href="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image8.png"/><p>In a <a href="https://stripe.dev/blog/connect-embedded-components-streamline-onboarding">past blog post</a>, we explored how to move from hosted onboarding onto a whitelabeled embedded onboarding flow by using the <a href="https://docs.stripe.com/connect/supported-embedded-components/account-onboarding">account onboarding embedded component</a>. In this blog post, we’ll go over how to build a whitelabeled dashboard for connected accounts with just a few lines of code by using Connect embedded components.</p>
<p>In this example, we’ll be building out the connected account dashboard for FurEver, a pet grooming SaaS platform.</p>
<h2>Rendering payments, allowing refunds and dispute management</h2>
<p>To achieve this in the FurEver dashboard, you could build these workflows directly with Stripe’s APIs, but doing so requires substantially more than listing <a href="https://docs.stripe.com/api/payment_intents/list">PaymentIntents</a>. You would need to implement pagination, payment-method and status presentation, permissions, payment details, refunds, disputes, capture flows, and ongoing support for new states and capabilities. The <a href="https://docs.stripe.com/connect/supported-embedded-components/payments">Payments embedded component</a> provides these workflows as a Stripe-maintained UI that you can place directly inside your dashboard.</p>
<h3>One-time setup</h3>
<p>First, we need to make sure we’re initializing embedded components correctly for the connected account. We do this by exposing an endpoint on the FurEver dashboard server-side code that creates an account session for the current account. FurEver is a NextJS application that uses App Router, so we add a new <code>/api/create_account_session</code> POST endpoint:</p>
<pre><code class="language-javascript">export async function POST() {
  const session = await getServerSession(authOptions); // Get FurEver session state
  const stripeAccountId = session.user.stripeAccount.id;
  const accountSession = await stripe.accountSessions.create({
    account: stripeAccountId,
    components: {
      payments: {
        enabled: true,
      },
      // Other components go here...
    },
  });

  return new Response(JSON.stringify(accountSession), {
    status: 200,
    headers: {&#x27;Content-Type&#x27;: &#x27;application/json&#x27;},
  });
}
</code></pre>
<p>We&#x27;ll use this API to initialize embedded components on the frontend. I’ll need to add a dependency to the <code>@stripe/connect-js</code> and <code>@stripe/react-connect-js</code> packages.</p>
<pre><code class="language-javascript">yarn add @stripe/connect-js @stripe/react-connect-js
</code></pre>
<p>Now that we have the packages, I’m going to edit the top-level wrapper of my frontend to include the initialization context for embedded components. This makes it so that I can render components in any part of the React tree below this wrapper.</p>
<pre><code class="language-javascript">import {loadConnectAndInitialize} from &#x27;@stripe/connect-js&#x27;;
import {
  ConnectComponentsProvider,
} from &#x27;@stripe/react-connect-js&#x27;;

export default function AppWrapper({children}) {
  const [stripeConnectInstance] = React.useState(() =&gt; {
    const fetchClientSecret = async () =&gt; {
      const response = await fetch(&#x27;/api/create_account_session&#x27;, {
        method: &#x27;POST&#x27;,
      });
      if (!response.ok) {
        throw new Error(&#x27;Failed to fetch account session&#x27;);
      } else {
        const {client_secret} = await response.json();
        return client_secret;
      }
    };

    return loadConnectAndInitialize({
      publishableKey:
        &#x27;pk_test_123&#x27;, // Your publishable key goes here!
      fetchClientSecret: fetchClientSecret,
    });
  });

  return (
    &lt;ConnectComponentsProvider connectInstance={stripeConnectInstance}&gt;
      {children}
    &lt;/ConnectComponentsProvider&gt;
  );
}
</code></pre>
<p>Next, we can render the ConnectPayments embedded component in the payments page:</p>
<pre><code class="language-javascript">import {
  ConnectPayments,
} from &#x27;@stripe/react-connect-js&#x27;;

export const PaymentsPage = () =&gt; {
  return (
    &lt;div&gt;
       &lt;div&gt;...Header...&lt;/div&gt;
       &lt;div&gt;
          &lt;div&gt;Recent payments&lt;/div&gt;
          &lt;ConnectPayments /&gt;
       &lt;/div&gt;
    &lt;/div&gt;
  );
}
</code></pre>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image5.png" alt="The ConnectPayments embedded component in the payments page"/></p>
<p>The payments component is now rendering under the “Recent payments” label. Connected accounts can now refund payments, respond to disputes, and capture payments.</p>
<h3>Rendering balance and payouts</h3>
<p>Let’s give connected accounts an overview of their balance and payouts by using the payouts component. On the server, we should enable the payouts component:</p>
<pre><code class="language-javascript">const accountSession = await stripe.accountSessions.create({
  account: stripeAccountId,
  components: {
    payments: {
      enabled: true,
    },
    payouts: {
      enabled: true,
    },
    // Other components go here...
  },
});

// PayoutsPage.tsx
import {
  ConnectPayouts,
} from &#x27;@stripe/react-connect-js&#x27;;

export const PayoutsPage = () =&gt; {
  return (
    &lt;div&gt;
       &lt;div&gt;...Header...&lt;/div&gt;
       &lt;div&gt;
          &lt;div&gt;Payouts&lt;/div&gt;
          &lt;ConnectPayouts /&gt;
       &lt;/div&gt;
    &lt;/div&gt;
  );
}
</code></pre>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image2.png" alt="ConnectPayments embedded component in the payments page"/></p>
<p>Connected accounts can now view balance, payouts, change payout schedule, and change their bank destination.</p>
<h3>Keeping connected accounts enabled for payments</h3>
<p>Connected accounts may become unable to process payments or obtain payouts for a wide variety of reasons - exceeding processing thresholds, balance overdrafts, or changing regulations, which require additional information from accounts to process payments. To keep accounts enabled, we can automate the information collection flows by enabling the <code>notification_banner</code> component, and render it in our app header.</p>
<p>The <code>notification_banner</code> is conditionally rendered - meaning it will only render when the account is disabled and needs additional information.</p>
<pre><code class="language-javascript">const accountSession = await stripe.accountSessions.create({
  account: stripeAccountId,
  components: {
    payments: {
      enabled: true,
    },
    payouts: {
      enabled: true,
    },
    notification_banner: {
      enabled: true,
    },
    // Other components go here...
  },
});

// AppHeader.tsx
import {
  ConnectNotificationBanner,
} from &#x27;@stripe/react-connect-js&#x27;;

export const AppHeader = ({ children } ) =&gt; {
  return (
    &lt;div&gt;
       &lt;ConnectNotificationBanner /&gt;
       &lt;&gt;{children}&lt;/&gt;
    &lt;/div&gt;
  );
}
</code></pre>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image1.png" alt="The notification_banner component"/></p>
<p>The notification banner (shown within the outline for clarity) now renders when a requirement is present on the connected account, to keep payments and payouts enabled.</p>
<h3>Mapping platform user roles to account session features</h3>
<p>So far we’ve used components configured with default <a href="https://docs.stripe.com/api/account_sessions/create">account session</a> features. In the case of FurEver, we have admin users and regular users, and we want to toggle features depending on the user role. For example, only admin users should be able to perform refunds on the payments component:</p>
<pre><code class="language-javascript">export async function POST() {
  const session = await getServerSession(authOptions); // Get FurEver session state
  const isAdmin = session.user.isAdmin;
  const stripeAccountId = session.user.stripeAccount.id;
  const accountSession = await stripe.accountSessions.create({
    account: stripeAccountId,
    components: {
      payments: {
        enabled: true,
        features: {
          refund_management: isAdmin,
          dispute_management: isAdmin,
        },
      },
      payouts: {
        enabled: true,
        features: {
          edit_payout_schedule: isAdmin,
        },
      },
      notification_banner: {
        enabled: true,
      },
      // Other components go here...
    },
  });

  return new Response(JSON.stringify(accountSession), {
    status: 200,
    headers: {&#x27;Content-Type&#x27;: &#x27;application/json&#x27;},
  });
}
</code></pre>
<p>The account session is now configured correctly to respect admin user roles, and components automatically adjust their behavior depending on this configuration.</p>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image9.png" alt="The refund flow is only enabled for FurEver admins"/>
<img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image7.png" alt="The refund flow is only enabled for FurEver admins"/></p>
<p>The refund flow is only enabled for FurEver admins.</p>
<h3>Matching the look and feel of the platform site</h3>
<p>By using the <a href="https://docs.stripe.com/connect/customize-connect-embedded-components">appearance API</a>, we can get the components to look exactly like the rest of the UI. We recommend using the “upload” functionality of our <a href="https://docs.stripe.com/connect/customize-connect-embedded-components">theming doc site</a> which can take an image of your site, and output theming values you can fine tune.</p>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image3.png" alt="Using the appearance API"/></p>
<p>FurEver uses the following theme, and toggles it depending on whether the app is in dark or light mode - it also passes in the current locale, to ensure this matches the rest of the dashboard.</p>
<pre><code class="language-javascript">export const defaultPrimaryColor = &#x27;#27AE60&#x27;;

export const LightTheme = {
  fontFamily: &#x27;Sohne, inherit&#x27;,
  colorPrimary: defaultPrimaryColor,
  colorBackground: &#x27;#ffffff&#x27;,
  colorBorder: &#x27;#D8DEE4&#x27;,
  ...
  // See full light theme [here](https://github.com/stripe/stripe-connect-furever-demo/blob/6c99740f14bf9d76d127aa0495cf38b9ab72ff3b/app/contexts/themes/ThemeConstants.ts#L3)
};

export const DarkTheme = {
  fontFamily: &#x27;Sohne, inherit&#x27;,
  colorPrimary: defaultPrimaryColor,
  colorBackground: &#x27;#1e222a&#x27;,
  ...
  // See full dark theme [here](https://github.com/stripe/stripe-connect-furever-demo/blob/6c99740f14bf9d76d127aa0495cf38b9ab72ff3b/app/contexts/themes/ThemeConstants.ts#L23)
};
...

const appearanceVariables = theme === &#x27;dark&#x27; ? DarkTheme : LightTheme; // Toggle depending on current FurEver theme
const instance = loadConnectAndInitialize({
  ...
  appearance: {
    overlays: &#x27;dialog&#x27;,
    variables: appearanceVariables || LightTheme,
  },
  locale,
  ...
});
</code></pre>
<h3>Conclusion</h3>
<p>By using embedded components and writing only a few lines of code, we’ve built a full payments dashboard for FurEver connected accounts that:</p>
<ol>
<li>Provides connected accounts with full functionality for payments, payouts and keeping accounts enabled via notification banner</li>
<li>Snaps to FurEver user role permissions by using account session features</li>
<li>Matches the FurEver look and feel by using appearance and locale</li>
<li>Updates automatically, so FurEver won’t miss any new payment methods or compliance updates</li>
</ol>
<p><img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image4.png" alt="Payments dashboard for FurEver connected accounts"/>
<img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image6.png" alt="Payments dashboard for FurEver connected accounts"/>
<img src="https://stripe.dev/images/creating-a-whitelabeled-connected-account-dashboard-with-embedded-components/image8.png" alt="Payments dashboard for FurEver connected accounts"/></p>
<p>You can try this demo live at <a href="https://furever.dev/">https://furever.dev</a>. This sample is open source: <a href="https://github.com/stripe/stripe-connect-furever-demo">https://github.com/stripe/stripe-connect-furever-demo</a>.</p>
<p>In this blog post we’ve used only three components. Stripe offers a growing catalog of embedded components, including components for areas such as Instant payouts, Capital, Tax, and Issuing. To see the full component list and read more about how to integrate with them please visit our <a href="https://docs.stripe.com/connect/supported-embedded-components">supported components page</a>.</p>]]></content:encoded></item><item><title><![CDATA[Stripe’s Payment Method Factory: Orchestrating agents for repeated, custom integrations]]></title><description><![CDATA[Stripe built an agentic payment method factory from over 100 reusable prompts, hardened by agents observing implementation runs, and kept them current by feeding back each run's learnings.]]></description><link>https://stripe.dev/blog/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations</link><guid isPermaLink="true">https://stripe.dev/blog/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations</guid><dc:creator><![CDATA[David Dunne]]></dc:creator><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image6.png"/><link rel="preload" as="image" href="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image5.png"/><p>The first time you build something new, you start from scratch. The second time, you spot the patterns and build a platform. But to truly scale, you build a factory.</p>
<p>We built our payment method factory from over 100 reusable prompts, hardened by agents observing implementation runs, and kept them current by feeding back each run&#x27;s learnings.</p>
<p>Stepping back, Stripe offers over 125 payment methods across the globe, ranging from credit cards, to PayPal wallets, to Buy Now, Pay Later services like Klarna. At a high level, each payment method does the same thing:</p>
<ul>
<li>Makes a payment</li>
<li>Issues a refund</li>
<li>Handles a dispute</li>
</ul>
<p>Under the hood, they have different behaviors and different API shapes. Despite these differences, the process of building each integration follows a familiar pattern. Yet with little reusable tooling, teams were starting from scratch each time, meaning it could take six months to build even a basic integration.</p>
<p>In 2025, this led us to ask two important questions.</p>
<ul>
<li>Could we prompt an LLM to build an entire payment method integration?</li>
<li>And, more importantly, could we reuse those prompts for every future integration?</li>
</ul>
<p>The factory we built has so far created three new payment method integrations and migrated ten existing integrations to our modern stack, demonstrating its effectiveness for legacy migrations, too. The payment method factory reduced integration timelines from as long as six months to two-to-six weeks.</p>
<p>Along the way, we learned how valuable it was to harden our prompts to make them reusable, keep them up to date as the codebase evolved, orchestrate the agents in a human-guided workflow, and get agents testing their own changes.</p>
<h2>Building the foundation: Hardened reusable ‘one-shot’ prompts</h2>
<p>An agent skill and a simple prompt are often enough to complete part of an integration. If the agent needs steering, we can refine the original prompt until it completes the task without our help. Saving these prompts for the next integration makes sense, but how do we know whether they’re actually good prompts, or whether the agent just muddled its way through despite them? Even in a successful ‘one-shot’ run, we can still see the agent perform unnecessary investigations or repeatedly attempt to fix failing tests. We hypothesized that evaluating and refining these prompts could get us the same results faster, at a lower cost, and with more confidence in the output.</p>
<p>To see how much difference this approach could make, we did a bake-off, two engineers completed the same integration task: add payment method support for a frontend-facing API. One engineer used vanilla Claude Code, while the other used Claude Code with a reusable set of prompts built from our prior experience. The difference was substantial: the vanilla setup required roughly 20 days of engineering effort, compared to 4 days when using the reusable prompts.</p>
<h3>Writing a good one-shot prompt</h3>
<p>We began with over 125 past implementations of payment methods as the base of our prompt. We gave the agent these examples and a template for structuring the prompt, then refined the output by hand. We designed the resulting template to be payment-method agnostic so it could be reused across other payment methods. Here’s an example:</p>
<p><img src="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image4.png" alt=""/></p>
<p>Excerpt from a prompt for handling payment confirmations</p>
<p>This gave us a strong starting point for evaluating and hardening the prompt. The process starts with an implementation agent that’s following the prompt to build a payment method integration. A second agent, acting as an observer, runs in parallel to the implementation agent. The observer knows what the agent is trying to implement and what the end state should look like. It reads the implementation agent’s transcript, and notes down which steps took extra time to investigate, where the agent got lost, and what the agent had to re-learn. It checks if any of our internal tooling failed during the process, like a command timing out. If the first pass generated a red CI, it looks at the failures. The engineer takes the observer agent’s report and refines the prompt further.</p>
<p><img src="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image6.png" alt=""/></p>
<p>The first step when starting on a new payment method integration is the scaffolding, which  could take an engineer up to a week to finish. It involves adding an ‘adapter’ so that other Stripe products can interact with the payment method, adding feature gates to restrict access, wiring it in our API specs and SDKs without exposing it, and setting the partner details. This change alone is more than 5000 lines long, touches over 100 files, and is produced in part by 15 commands that generate code and have to run in a set order. When something broke, an engineer had to work out what each command does and where the payment method still needed to be registered. With a prompt that explains what each piece does and where to look if something breaks, we brought this step down to a day of implementation time.</p>
<h3>Continuous knowledge loop: Keeping prompts up to date</h3>
<p>The issue with reusable prompts, unlike creating a new one each time, is that we have to find a way to effectively maintain them. We now have over 100 saved prompts. If the way we provision databases changes, or an investigation pointer isn’t valid, we need to update any affected prompts.</p>
<p>To take on this maintenance overhead, we developed a system that continuously improves the prompts. While the payment method factory is working on an integration, it collects some artifacts:</p>
<ul>
<li>Learning logs from the individual implementation agents about anything they had to learn about our systems that wasn’t covered by the initial prompt.</li>
<li>Decision logs for all the decisions they had to make unattended to give the reviewers more context on why the agent went down a certain path.</li>
<li>Full transcripts of the entire session.</li>
<li>Engineer’s review comments on the created pull request.</li>
</ul>
<p>When the integration is complete, an agent takes these artifacts and suggests potential improvements to the prompts. Some are straightforward enough and can be implemented with the click of a single button using <a href="https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents">minions</a>, Stripe’s one-shot coding agents, while others might require further work before we apply them.</p>
<p><img src="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image2.png" alt=""/></p>
<h2>Building the factory: Orchestrating our collection of prompts</h2>
<p>We now have a collection of prompts that covers every step of building a new payment method integration. Stripe uses a monorepo, so theoretically, we could combine all the prompts into one master prompt and be done in one pull request. In practice, the current limits of an agent’s context window make this impossible and the resulting PR would be too large to review and prone to merge conflicts.</p>
<p>We kept the development lifecycle we already know works: start an agentic session, run a prompt, review the result, and open a PR. The difference is that an engineer no longer has to drive every step themselves. An orchestrator can delegate each step to an isolated implementation agent.</p>
<p>There are two phases to our orchestration. The first is creating a plan, a sequence of discrete steps, each linked to one of the prompts we developed earlier. The goal is for each step to map to one pull request. As we construct the plan, the agent interviews the engineer for context on the payment method being built, asking about requirements like what currencies are supported in which regions. This context is exported to a shared knowledge base that implementation agents can later reference.</p>
<p><img src="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image1.png" alt=""/></p>
<p>The second phase executes the plan, with implementation (sub)agents handling each step. To coordinate their work, we needed an orchestrator that could assign each task to the right implementation agent and track its progress.</p>
<p>Our first approach used a high-level orchestrator agent for this role. It worked, but it was expensive, slow, and sometimes unreliable. In some cases, the orchestrator agent tried to implement the step itself rather than delegating to an implementation agent, which ultimately ate up its context.</p>
<p>We learned that although an LLM can orchestrate a workflow, predictable coordination is better implemented in code.</p>
<p><img src="https://stripe.dev/images/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations/image5.png" alt=""/></p>
<h2>Building confidence: Letting agents test their own work</h2>
<p>As code generation becomes faster, code reviews started becoming a bottleneck. We help reviewers by keeping pull requests small and providing all relevant context, but ultimately, we found that giving agents the tools to test their integrations autonomously gives the reviewer the most confidence.</p>
<p>Let’s take the service that talks with the payment method provider as an example. If a provider has a sandbox environment, the factory creates test payments and runs different end-to-end scenarios against it. The factory checks requests, responses, internal state changes, and emitted events against our expectations. It then snapshots the provider’s API responses and creates immutable contracts that are used throughout our stack, rather than manually creating hand-written mocks. All of this is then presented to the engineer and is used in our system to emulate recorded payment method behavior.</p>
<p>We still have room to improve here. Agents should have the tools to interact with every part of our systems and we’d like to automate remaining manually tested steps, like UI testing.</p>
<h2>Beyond payment methods</h2>
<p>Payment methods are not the only repeated, customizable integration we have. Teams at Stripe were inspired by the payment method factory to build their own versions. For example, our tax team uses one to build connectors that bring Stripe Tax to businesses selling on other platforms, and our verification team built one for the providers we use to check business details during onboarding.</p>
<p>If making other engineers more productive interests you, <a href="https://grnh.se/b5wzjpge1us">we’re hiring</a>.</p>]]></content:encoded></item><item><title><![CDATA[How Stripe is designing Checkout for AI agents]]></title><description><![CDATA[How Stripe used WebMCP to accelerate agent purchases from the browser.]]></description><link>https://stripe.dev/blog/how-stripe-is-designing-checkout-for-ai-agents</link><guid isPermaLink="true">https://stripe.dev/blog/how-stripe-is-designing-checkout-for-ai-agents</guid><dc:creator><![CDATA[Cara Mecozzi]]></dc:creator><pubDate>Tue, 22 Sep 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image3.gif"/><link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image5.png"/><link rel="preload" as="image" href="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image6.png"/><p>In order to help Stripe sellers benefit from the rapid growth of AI agents, we enabled WebMCP on all Stripe Checkout UIs resulting in 42% fewer tokens consumed and 38% fewer tool calls invoked against baseline measurements.</p>
<p>While many businesses (Stripe included!) have built MCP servers as a programmatic interface for agents, browser use remains a predominant path for agents to interface with existing services. Websites, traditionally, have been optimized for human usage. To complete a checkout, an agent must interpret both the visual interface and the Document Object Model (DOM), infer both the information presented and which actions are available, and then plan and execute those actions. Even with ongoing model improvement, navigating a webpage is still slow, indirect, and token-intensive.</p>
<p>Just as we optimize human buying experiences to minimize latency and clicks, we need to optimize agent buying experiences to minimize token usage and tool calls. These are the primary measures of agent efficiency: tokens indicate cost, while tool calls indicate effort (and a high number of tool calls can also signal confusion!).</p>
<p>We believed WebMCP, an emerging standard gaining traction, was a strong candidate to improve the agent checkout experience.</p>
<p>This problem is no longer hypothetical. Agents like <a href="https://stripe.com/newsroom/news/stripe-helps-meta-muse-shop-with-link">Muse</a>, Instinct, and Grokbot, are launching and becoming popular – typically equipped with a virtual machine and browser –  and we are seeing and anticipating growth in agentic volume processed on Stripe:</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image2.png" alt=""/></p>
<p>We decided to incorporate agent-friendly WebMCP across Stripe Checkout UIs, which powers over 7.8M businesses processing around 0.45% of global GDP.  We aimed to give millions of merchants access to future agentic shoppers without them needing to change their integration while providing a fast and reliable consumer experience.</p>
<p>As a baseline without WebMCP enabled, we measured an average of 1.8M tokens consumed, 38.83 tool invocations, and &gt;2.5 minutes duration for these agents to complete a transaction with Stripe Checkout. Even in chat-based applications where there is some expectation of latency, this is all simply too high.</p>
<p>This blog post focuses on how we implemented WebMCP to reduce token consumption and tool invocations.  We struck a balance between building a specialized interface that improved agent performance, yet keeping it aligned to the human interface for better maintainability.</p>
<h2>What is WebMCP?</h2>
<p><a href="https://developer.chrome.com/docs/ai/webmcp">WebMCP</a> is a browser technology that lets websites “expose” MCP tools to agents from the client side. Instead of inferring how to complete a task and navigating the DOM, an agent can execute tools, such as get_order_summary or fill_payment_form. The agent doesn’t necessarily have to look at any of the HTML on the page.</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image3.gif" alt=""/></p>
<p>Above is a Stripe Checkout page.  We can see that invocations of the available tools result in changes to the UI – select_payment_method dynamically updates the UI and fill_payment_form put in credentials like the card number – we theorized this is a great improvement over ingesting all of the HTML into the LLM context and ascertaining element ids or classes to infer where buttons were (or hardcoding flows that could be brittle).</p>
<h2>Building for WebMCP</h2>
<p>With a baseline measurement of ~39 tool calls to reach payment, each consuming tokens and time, we focused on tool design that would substantially reduce that number. And for our initial build, we preferred not to “fork” the business logic behind the page depending on whether the user was a human or an agent.</p>
<p>A catalog of tools can eliminate some of the ambiguity that comes with visual browser automation, but with a large catalog, the agent must still decide which actions are valid. An agent presented with too many tools, irrelevant parameters, or invalid actions can still struggle to complete the task.</p>
<p>Consider a checkout that supports multiple payment methods, dynamically rendered address fields, and a payment button that is only activated after the required information has been provided. If an agent receives every possible action at once, its context includes tools and parameters that may be irrelevant or impossible to use.</p>
<p>Instructions in the tool descriptions can help, but they still leave the agent unnecessarily responsible for reasoning about constraints the application already understands. You can think of it like pruning the branches of a tree to  progressively guide the agent towards the target outcome.</p>
<h3>Reveal tools as they become actionable</h3>
<p>We designed Stripe’s WebMCP implementation around progressive tool disclosure, meaning that the page only exposes only the tools and parameters that are relevant in its current state. This makes agent interactions more reliable while keeping human and agent experiences aligned. Concretely, we want to minimize cases where available tools can result in sequenced invocations that result in errors.</p>
<p>As an example, we do not reveal the submit_payment tool until all the fields have been filled. A simplified checkout might progress like this:</p>
<ol>
<li>The agent inspects the checkout session and available payment methods.</li>
<li>After selecting a payment method, the page exposes a form filling tool whose schema reflects the visible fields.</li>
<li>The agent provides the required information using that tool.</li>
<li>Once the form is complete and valid, the page exposes submit_payment.</li>
</ol>
<p>If the checkout state changes, the available tools change with it. For example, if the agent changes payment method type to a non-card method, we’ll remove the number from the parameter set of fill_payment_form.</p>
<p>Rather than mapping every possible action upfront, this approach reduces tool calls, improves reliability, and increases successful payment outcomes.</p>
<p>Additionally, we relied on many of the existing accessibility patterns and optimizations in our frontend code to keep a shared infrastructure rather than creating a second checkout implementation exclusively for agentsWebMCP tools delegate to the same foundations used by human-facing checkout interfaces. As we continue to optimize Stripe Checkout for humans, agents will reap all the benefits. And, now that we’re closer to human and agent parity, we’re interested in how agent-first improvements may reflect in the human experience.</p>
<h3>Avoid forking our business logic</h3>
<p>We used two WebMCP API types to connect tools to the existing interface: imperative and declarative tool implementations. Our existing UI surfaces have both state management and forms designed to handle the end-to-end payment flow. We did not want to introduce an “agent-only” bifurcation that could result in drift or add toil for engineers.</p>
<p>With the Imperative API, we introduced tools like get_order_summary that derive their responses from existing state and select_payment_method for explicit actions like changing payment method that initiate existing state transitions.</p>
<p>For form filling, we used the Declarative API to create tools that derive from rendered HTML. The browser can infer an input schema from the controls that are currently visible rather than requiring us to maintain a second, manually duplicated form schema. This means that if a developer adds a new form field, it will bubble up to the new tools by default.</p>
<p>Agents using browser automation tools like Browserbase can then invoke these tools directly to get checkout information and complete payments.</p>
<h2>Evaluating performance</h2>
<p>To assess whether WebMCP made agents attempting to checkout more efficient without sacrificing reliability, we measured checkout completion, execution time, tool calls, and token consumption.</p>
<p>We ran 60 tests across six models on a fictional outdoor retailer website using the Stripe Checkout full page UI. 50% of the tests used WebMCP and 50% used a baseline browser interaction. Each test required the agent to complete the same end-to-end task to navigate to the website, add a product to the cart, proceed to checkout and complete payment.</p>
<p>In all of the tests, agents completed the checkout successfully. But when we compared the agents that used WebMCP, we found that agents performed significantly better across three categories.</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image4.png" alt=""/></p>
<p>Agents using WebMCP consumed 42% fewer tokens, completed checkout 39% faster, and made 38% fewer tool calls per run.</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image1.png" alt=""/></p>
<p>We measured total tokens (input + output + cache) consumed by the agent to complete the task. Token usage contributes directly to the cost of an agentic transaction, so reducing tokens can make these transactions less expensive for agents to support at scale.</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image5.png" alt=""/></p>
<p>We also counted the number of actions (clicks, form fills, tool invocations) an agent takes to complete checkout. Fewer tool calls mean the agent took a more direct path through checkout, with less exploratory form interaction.</p>
<p><img src="https://stripe.dev/images/how-stripe-is-designing-checkout-for-ai-agents/image6.png" alt=""/></p>
<p>And finally, we measured wall-clock time from task start to a completed checkout. This looked at the time it took for the agent to navigate to the URL, select a product, complete the checkout form and submit the payment. The reduction in execution time lowered the time a customer spent waiting for an agent to complete a purchase by 60 seconds.</p>
<h2>Up next</h2>
<p>WebMCP is one step in an evolving standard of browser-agent behavior, where interfaces can serve people and agents without requiring separate experiences for each. As agents become an even more popular way people interact with the web, engineers will need to decide how to communicate desired actions to both human and machine users.</p>
<p>As WebMCP and browser agents evolve, we’ll continue improving Checkout for agent-driven purchases to help businesses serve customers however they choose to buy, whether they interact with Checkout directly or ask an agent to act on their behalf.</p>
<p>Ready to build for agent driven purchases? <a href="https://docs.stripe.com/agentic-commerce/for-agents/webmcp">Get started with Stripe Checkout and WebMCP</a>.</p>
<p>We’re still early in understanding what becomes possible when it comes to building for AI agents. There’s a lot left to build at Stripe, and the work spans infrastructure, developer tools, product systems, and AI all at once. If that’s the kind of problem you want to work on, <a href="https://grnh.se/b5wzjpge1us">we’re hiring</a>.</p>]]></content:encoded></item><item><title><![CDATA[Building custom financial reconciliation workflows with Stripe]]></title><description><![CDATA[Stripe’s next generation of reporting APIs are focused on enterprise scalability, and this post shows you how to use them in your financial reporting infrastructure.]]></description><link>https://stripe.dev/blog/building-custom-financial-reconciliation-workflows-with-stripe</link><guid isPermaLink="true">https://stripe.dev/blog/building-custom-financial-reconciliation-workflows-with-stripe</guid><dc:creator><![CDATA[Maia Robinson]]></dc:creator><pubDate>Fri, 18 Sep 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<p>Many traditional enterprises still rely on SSH File Transfer Protocol (<a href="https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol">SFTP</a>) for core financial reconciliation activities that are critical for finance teams. While SFTP has remained a common standard, it falls short in the age of event-driven architecture, hyper-customization, and continuous iteration. Stripe’s next generation of reporting APIs are focused on enterprise scalability, and this post shows you how to use them in your financial reporting infrastructure.</p>
<h2>Why SFTP falls short</h2>
<p>It is true that SFTP remains common in enterprise environments. However, we consistently hear that SFTP proves to be fragile, hard to scale, and lacks the level of self-service customization that complex, dynamic businesses need.</p>
<ol>
<li>Polling dependency and data delays: Statically scheduled batch jobs can leave data behind operational reality. SFTP reporting pipelines are often coupled with cron jobs and polling processes to detect new files, which is inefficient when Stripe offers real-time payout and report run completion events.</li>
<li>Customization limitations: Oftentimes, legacy processors have SFTP reports with a fixed set of available columns and set delivery schedules. With Stripe’s API-based custom reports, when your finance team makes a request for a new report field or cadence, there’s no need to go back and forth with Stripe, you can just implement it.</li>
<li>Security overhead: Reporting APIs allow you to use the same API key-based permissioning and audit trail as the rest of your services, not a separate SFTP credential/IP-allowlist to manage.</li>
</ol>
<h2>Stripe’s reporting philosophy</h2>
<p>Stripe’s reporting APIs, including the <a href="https://docs.stripe.com/reports/v2-api">Reports API v2</a> and <a href="https://docs.stripe.com/reports/query-runs">Query Run API</a>, are focused on delivering a developer-first approach to financial reconciliation.</p>
<ol>
<li>Data platform consistency: Businesses often have completely separate datasets and schemas being used for financial reconciliation activities versus BI analytics. By offering a consistent schema across data products like Sigma and Data Pipeline, which also closely align with the API conventions, Stripe provides a more consistent experience across your business’ use cases.</li>
<li>Self-service: Developer agency is a non-negotiable for Stripe products, and reporting is no different. Whether you need to add custom metadata as a report column, join multiple resource tables, add a new derived field, or update the report run schedule, you can make changes autonomously.</li>
</ol>
<h2>Building financial reconciliation reports</h2>
<p>Let’s take a fictional business, Galtee, an outdoor equipment retailer. Galtee has a direct-to-consumer business line as well as a business-to-business line that sells products to campgrounds and adventure tourism companies. The Galtee finance team has shared financial reconciliation reporting requirements that Galtee’s engineering team is working on fulfilling using <a href="https://docs.stripe.com/data/sigma">Sigma</a>. The <a href="https://docs.stripe.com/reports/query-runs">Query Run API</a> allows Galtee to programmatically execute SQL queries as part of a reporting workflow, making it possible to create fully custom reports that don’t need a post-extraction transformation layer.</p>
<h3>Multi-account payout reconciliation</h3>
<p>Galtee has created two different Stripe accounts, representing the D2C and B2B business lines, that are grouped under an <a href="https://docs.stripe.com/get-started/account/orgs">Organization</a>. Galtee’s finance team needs a report that includes transaction information for all funds paid out to the Galtee bank accounts for a given day.</p>
<p>The <code>balance_transactions</code> Sigma table is the main table for financial reconciliation, because it includes all transactions that contributed to the Stripe account balance. It can be joined with the transfers table to list all transactions that are part of a bank payout on a given date:</p>
<pre><code class="language-sql">SELECT
  date(transfers.date) as payout_date,
  transfers.id as payout_id,
  balance_transactions.id AS balance_transaction_id,
  balance_transactions.source_id,
  balance_transactions.type,
  balance_transactions.net,
  balance_transactions.currency,
  balance_transactions.amount
FROM transfers
JOIN balance_transactions
  ON balance_transactions.automatic_transfer_id = transfers.id
WHERE
  date(transfers.date) = date({{PAYOUT_REPORT_DATE}})
</code></pre>
<p>Then, to run this query across both of Galtee’s Stripe accounts, Galtee can set the API key to be the Organization secret key:</p>
<pre><code class="language-bash">curl -X POST https://api.stripe.com/v2/data/reporting/query_runs \
  -H &quot;Authorization: Bearer {{ORGANIZATION_SECRET_KEY}}&quot; \
  -H &quot;Stripe-Version: 2026-07-29.preview&quot; \
  --json &#x27;{
    &quot;sql&quot;: &quot;{{QUERY_STRING}}&quot;
  }&#x27;
</code></pre>
<p>Once the query completes, Galtee will receive a <a href="https://docs.stripe.com/api/v2/data/reporting/query-runs/event-types?api-version=2026-07-29.preview#v2_query_runs_event_types-v2.data.reporting.query_run.succeeded">v2.data.reporting.query_run.succeeded</a> webhook event that can trigger automated report retrieval.</p>
<p>This returns a clean table listing all balance-affecting activity, including payments, refunds, and fees included in a given payout. The sum of the “net” column amounts, minus the successful payout rows, should equal the total cash paid out to Galtee’s bank accounts that day.</p>
<h3>Local presentment and FX in payout reconciliation</h3>
<p>Now, let’s say Galtee has started selling cross-border to European buyers and is manually setting prices in EUR. Galtee’s finance team now needs the payout reconciliation report updated to include the presentment amounts and the exchange rate used for the currency conversion of each transaction. This can be easily incorporated by adding the <code>exchange_rate</code> field from the <code>balance_transactions</code> table and adding the presentment data by joining with the charges table:</p>
<pre><code class="language-sql">SELECT
  date(transfers.date) as payout_date,
  transfers.id as payout_id,
  charges.id AS charge_id,
  charges.created AS charge_created_at,
  balance_transactions.id AS balance_transaction_id,
  balance_transactions.source_id,
  balance_transactions.type,
  balance_transactions.net,
  balance_transactions.currency AS settlement_currency,
  balance_transactions.amount AS settlement_amount,
  charges.currency AS presentment_currency,
  charges.amount AS presentment_amount,
  balance_transactions.exchange_rate
FROM transfers
JOIN balance_transactions
  ON balance_transactions.automatic_transfer_id = transfers.id
LEFT JOIN charges
  ON charges.balance_transaction_id = balance_transactions.id
WHERE
  date(transfers.date) = date({{PAYOUT_REPORT_DATE}})
</code></pre>
<p>Now the reconciliation report supports local currency presentment scenarios and Galtee’s engineering team can immediately deploy this change by updating their <a href="https://docs.stripe.com/reports/query-runs">Query Run API</a> sql parameter.</p>
<h3>Itemized IC+ transaction fees in payout reconciliation</h3>
<p>Next, Galtee’s finance team wants to know the total IC+ fees associated with each card charge on the payout report. The original query can be modified to also join with the <code>icplus_fees</code> table and sum all of the IC+ fee rows for each charge:</p>
<pre><code class="language-sql">SELECT
  date(transfers.date) as payout_date,
  transfers.id as payout_id,
  balance_transactions.id AS balance_transaction_id,
  balance_transactions.source_id,
  balance_transactions.type,
  balance_transactions.net,
  balance_transactions.currency AS settlement_currency,
  balance_transactions.amount AS settlement_amount,
  charges.currency AS presentment_currency,
  charges.amount AS presentment_amount,
  balance_transactions.exchange_rate,
  CASE
    WHEN balance_transactions.type = &#x27;charge&#x27; THEN (
      SELECT SUM(icplus_fees.billing_amount)
      FROM icplus_fees
      WHERE icplus_fees.charge_id = balance_transactions.source_id
    )
    ELSE NULL
  END AS icplus_fee_total
FROM transfers
JOIN balance_transactions
  ON balance_transactions.automatic_transfer_id = transfers.id
LEFT JOIN charges
  ON charges.balance_transaction_id = balance_transactions.id
WHERE
  date(transfers.date) = date({{PAYOUT_REPORT_DATE}})
</code></pre>
<p>Galtee can also take it a step further and create an itemized row of all IC+ fees to add to each card charge row:</p>
<pre><code class="language-sql">WITH

-- Create a table with a single row of all IC+ fees for each charge
icplus_by_charge AS (
  SELECT
    charge_id,
    SUM(CASE WHEN fee_name = &#x27;interchange&#x27; THEN total_amount END) AS interchange,
    SUM(CASE WHEN fee_name = &#x27;card_scheme&#x27; THEN total_amount END) AS card_scheme,
    SUM(CASE WHEN fee_name = &#x27;volume_fee&#x27; THEN total_amount END) AS volume_fee,
    SUM(CASE WHEN fee_name = &#x27;per_auth_fee&#x27; THEN total_amount END) AS per_auth_fee,
    SUM(total_amount) AS total_icplus_fee
  FROM icplus_fees
  GROUP BY charge_id
)

-- Final query using the IC+ fees by charge table
SELECT
  date(transfers.date) as payout_date,
  transfers.id as payout_id,
  charges.id AS charge_id,
  charges.created AS charge_created_at,
  balance_transactions.id AS balance_transaction_id,
  balance_transactions.source_id,
  balance_transactions.type,
  balance_transactions.net,
  balance_transactions.currency AS settlement_currency,
  balance_transactions.amount AS settlement_amount,
  charges.currency AS presentment_currency,
  charges.amount AS presentment_amount,
  balance_transactions.exchange_rate,
  
  --icplus_fees columns
  icplus_by_charge.total_icplus_fee,
  COALESCE(icplus_by_charge.interchange, 0) AS interchange_fee,
  COALESCE(icplus_by_charge.card_scheme, 0) AS card_scheme_fee,
  COALESCE(icplus_by_charge.volume_fee, 0) AS stripe_volume_fee,
  COALESCE(icplus_by_charge.per_auth_fee, 0) AS stripe_per_auth_fee,
  COALESCE(icplus_by_charge.interchange, 0)
    + COALESCE(icplus_by_charge.card_scheme, 0) AS total_network_fees,
  COALESCE(icplus_by_charge.volume_fee, 0)
    + COALESCE(icplus_by_charge.per_auth_fee, 0) AS total_stripe_fee
FROM transfers
JOIN balance_transactions
  ON balance_transactions.automatic_transfer_id = transfers.id
LEFT JOIN charges
  ON charges.balance_transaction_id = balance_transactions.id
LEFT JOIN icplus_by_charge
  ON icplus_by_charge.charge_id = charges.id
WHERE
  date(transfers.date) = date({{PAYOUT_REPORT_DATE}})
</code></pre>
<p>The final Galtee report output looks like this:</p>























































<table><thead><tr><th>payout_id</th><th>balance_transaction_id</th><th>source_id</th><th>settlement_currency</th><th style="text-align:right">settlement_amount</th><th>presentment_currency</th><th style="text-align:right">presentment_amount</th><th style="text-align:right">exchange_rate</th></tr></thead><tbody><tr><td>po_****</td><td>txn_****</td><td>ch_****</td><td>usd</td><td style="text-align:right">1000</td><td>usd</td><td style="text-align:right">1000</td><td style="text-align:right"></td></tr><tr><td>po_****</td><td>txn_****</td><td>ch_****</td><td>usd</td><td style="text-align:right">1000</td><td>usd</td><td style="text-align:right">1000</td><td style="text-align:right"></td></tr><tr><td>po_****</td><td>txn_****</td><td>ch_****</td><td>usd</td><td style="text-align:right">59</td><td>eur</td><td style="text-align:right">50</td><td style="text-align:right">1.18541</td></tr><tr><td>po_****</td><td>txn_****</td><td>ch_****</td><td>usd</td><td style="text-align:right">1000</td><td>usd</td><td style="text-align:right">1000</td><td style="text-align:right"></td></tr></tbody></table>
<p>And the itemized IC+ fee columns for those same rows:</p>













































<table><thead><tr><th>balance_transaction_id</th><th style="text-align:right">total_icplus_fee</th><th style="text-align:right">interchange_fee</th><th style="text-align:right">card_scheme_fee</th><th style="text-align:right">stripe_volume_fee</th><th style="text-align:right">stripe_per_auth_fee</th></tr></thead><tbody><tr><td>txn_****</td><td style="text-align:right">-21.05</td><td style="text-align:right">-20.5</td><td style="text-align:right">1.95</td><td style="text-align:right">-2.5</td><td style="text-align:right">0</td></tr><tr><td>txn_****</td><td style="text-align:right">-14.95</td><td style="text-align:right">-16</td><td style="text-align:right">3.55</td><td style="text-align:right">-2.5</td><td style="text-align:right">0</td></tr><tr><td>txn_****</td><td style="text-align:right">-2.6005</td><td style="text-align:right">0.15</td><td style="text-align:right">0.303</td><td style="text-align:right">0.1475</td><td style="text-align:right">25</td></tr><tr><td>txn_****</td><td style="text-align:right">-9.55</td><td style="text-align:right">-10.25</td><td style="text-align:right">1.95</td><td style="text-align:right">-1.25</td><td style="text-align:right">0</td></tr></tbody></table>
<p><em>Note: the example above is for illustration of the report format only. Some columns have been hidden for brevity and actual data and amounts have been redacted/modified.</em></p>
<h2>Conclusion</h2>
<p>Financial reporting has historically been a siloed process that relies on push-based files with fixed templates and static schedules. Whether the reports are delivered directly to finance team members or fed into ERP integrations, Stripe’s <a href="https://docs.stripe.com/reports/query-runs">Query Run API</a> makes it possible to build an on-demand, flexible reporting pipeline that can evolve alongside your business.</p>]]></content:encoded></item><item><title><![CDATA[Harbor: Stripe’s AI-assisted prototyping tool]]></title><description><![CDATA[Harbor is the internal tool Stripe teams use to prototype with an AI agent. This post covers how it compiles prototypes in the browser, how the agent inspects its own work, and how comments stay anchored when the page is rewritten.]]></description><link>https://stripe.dev/blog/harbor-stripes-ai-assisted-prototyping-tool</link><guid isPermaLink="true">https://stripe.dev/blog/harbor-stripes-ai-assisted-prototyping-tool</guid><dc:creator><![CDATA[Cristian Rivera]]></dc:creator><pubDate>Mon, 14 Sep 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/prototype-hero.png"/><link rel="preload" as="image" href="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/shipped-hero.png"/><link rel="preload" as="image" href="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/builder-monthly-actuals.png"/><p>At Stripe, we’ve integrated AI into many of our workflows. We created <a href="https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents">Minions</a> that write code and built our <a href="https://stripe.dev/blog/meet-stripes-knowledge-ai-platform">Knowledge AI Platform</a> to help Stripes with a wide range of knowledge work. Many tasks are now faster and easier to complete thanks to these AI assistants.</p>
<p>An area where we haven’t seen as many improvements from AI has been prototyping. When making changes to <a href="https://stripe.com/">stripe.com</a>, our team often wants more information to evaluate the feasibility of a new design idea, but can’t always invest in developing a full engineering prototype.</p>
<p>One engineer built the first version of Harbor in about 40 days to solve that problem. We wanted to see whether AI could help designers turn a static design into something dynamic, without needing to understand code.</p>
<p>The result is an interactive, browser-based platform where designers can use AI to rapidly develop shareable prototypes using Stripe’s design systems and realistic mock data.</p>
<p>Harbor immediately improved the design phase of <a href="https://stripe.com/">stripe.com</a> projects, increasing engagement and driving clarity around the final vision. In one of the first projects to use Harbor, a designer built a new product page experience, including its animated hero. Engineers, product managers, and leaders interacted with it in real time, leading to quick iteration and consensus. When the page shipped, the animation carried over nearly one-for-one from the prototype.</p>
<div style="display:flex;flex-wrap:wrap;gap:16px;margin:24px 0 0"><figure style="flex:1 1 260px;margin:0"><figcaption style="font-family:sohne-mono,&#x27;Courier New&#x27;,Courier,monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--bodyTextColor,#1e1e1e);margin:0 0 8px">Harbor prototype</figcaption><img src="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/prototype-hero.png" alt="The hero as prototyped in Harbor: a phone showing an add-funds keypad, over a dashboard, on a violet gradient." style="width:100%;height:auto;display:block"/></figure><figure style="flex:1 1 260px;margin:0"><figcaption style="font-family:sohne-mono,&#x27;Courier New&#x27;,Courier,monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--bodyTextColor,#1e1e1e);margin:0 0 8px">Shipped stripe.com page</figcaption><img src="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/shipped-hero.png" alt="The same hero on the shipped page: a phone over a dashboard, on the same gradient, with the animation carried across." style="width:100%;height:auto;display:block"/></figure></div>
<p>Stripes across the company adapted Harbor for their own needs. Finance teams started presenting monthly actuals and business reviews as clickable prototypes instead of slide decks, a risk operations analyst turned a handle time analysis into a dashboard the rest of the team could inspect, and account executives built pricing proposals, battlecards, and ROI calculators for specific prospects.</p>
<p><img src="https://stripe.dev/images/harbor-stripes-ai-assisted-prototyping-tool/builder-monthly-actuals.png" alt="The Harbor builder: a monthly actuals review prototype rendering on the left, and the chat panel on the right showing the agent reading the KPI row, the revenue chart, and the variance table."/></p>
<blockquote>
<p>A monthly actuals review built in Harbor: the running prototype on the left, the agent and its tool calls on the right.</p>
</blockquote>
<p>Since May 2026, 3,000+ Stripes have created 12,000 prototypes, and 25% of Stripes have created at least one prototype in Harbor. This adoption came with more requests for increased collaboration within a Harbor prototype and interoperability with other AI tooling. Read on to learn how we built this functionality.</p>
<h2>Building Harbor for collaboration with people and agents</h2>
<p>Harbor’s interface is a browser tab with the running prototype and a chat panel. The author selects a design system for the prototype, setting its packages and starting files, then describes what they want. From there, Harbor works like this:</p>
<ul>
<li>The agent writes a multi-file source tree, and the page compiles and renders in the browser rather than on a server.</li>
<li>The agent can read the rendered page, list and inspect elements, click, type, scroll, switch the viewport between mobile, tablet, and desktop widths, and take screenshots.</li>
<li>When the prototype is ready, the author publishes it to a shareable URL. There’s one published version at a time, and every view compiles that copy fresh in the viewer’s own browser.</li>
</ul>
<svg xmlns="http://www.w3.org/2000/svg" id="fig-lifecycle" viewBox="0 0 708 428" style="display:block;width:100%;height:auto;margin:24px 0 0" role="img" aria-labelledby="lc-t lc-d">
<title id="lc-t">Harbor’s render lifecycle: From a prompt to a page running in the browser</title>
<desc id="lc-d">The agent writes a multi-file source tree from the prompt. Drydock compiles it in the browser and returns a running page with a report. The agent reads the page, switches viewport, screenshots, and edits files again. On publish, one snapshot is shared and every viewer’s browser compiles that copy.</desc>
<defs><pattern id="lc-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" style="fill:var(--artGridDotColor,var(--windowBarText,#1e1e1e))" opacity=".2"></circle></pattern></defs>
<style>
#fig-lifecycle-cap{display:none;margin:8px 0 0}
#fig-lifecycle text{font-family:'sohne-var','Helvetica Neue',Arial,sans-serif;fill:var(--bodyTextColor,#1e1e1e)}
#fig-lifecycle .m{font-family:'sohne-mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:300;letter-spacing:-.012em;font-size:12px;text-transform:uppercase;fill:var(--squareTextColor,#1e1e1e)}
#fig-lifecycle .s10{font-size:10px}#fig-lifecycle .fig{font-size:8px;fill:var(--windowBarText,#1e1e1e)}#fig-lifecycle .bt{fill:var(--windowBarText,#1e1e1e)}
#fig-lifecycle .mute{fill-opacity:.55}#fig-lifecycle .tt{fill:var(--tagTextColor,#1e1e1e)}#fig-lifecycle .lt{fill:var(--invertedTextColor,#1e1e1e)}#fig-lifecycle .light{fill:var(--bodyTextColor,#1e1e1e)}
#fig-lifecycle .h{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;shape-rendering:crispEdges}
#fig-lifecycle .win{fill:var(--artBackground,transparent);stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-lifecycle .frame{fill:var(--windowFrameBG,#dcdcdc)}#fig-lifecycle .ico{fill:var(--windowBarText,#1e1e1e)}
#fig-lifecycle .canvas{stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-lifecycle .pane{fill:var(--artForeground,#e8e8e8)}
#fig-lifecycle .tag{fill:var(--artForeground,#e8e8e8);stroke:var(--tagBorderColor,#1e1e1e44);stroke-width:1;stroke-dasharray:1 1;rx:3}#fig-lifecycle .lime{fill:var(--tagHighlightColor,#c4e817)}
#fig-lifecycle .term{fill:var(--codeBG,#f5f5f5);stroke:var(--codeBorderColor,#d5d5d5);stroke-width:1;rx:4}#fig-lifecycle .termf{fill:var(--codeBG,#f5f5f5)}#fig-lifecycle .hc{fill:none;stroke:var(--codeBorderColor,#d5d5d5);stroke-width:1;shape-rendering:crispEdges;vector-effect:non-scaling-stroke}
#fig-lifecycle .pinbg{fill:var(--artForeground,#e8e8e8)}#fig-lifecycle .sq{fill:var(--artStroke,#1e1e1e)}#fig-lifecycle .sql{fill:var(--bodyTextColor,#1e1e1e)}#fig-lifecycle .sqo{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-lifecycle .sqol{fill:none;stroke:var(--bodyTextColor,#1e1e1e);stroke-width:1}#fig-lifecycle .sqd{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;stroke-dasharray:1.5 1.5;stroke-opacity:.6}
#fig-lifecycle .card{fill:var(--artForeground,#e8e8e8);stroke:var(--artStroke,#1e1e1e);stroke-width:1;shape-rendering:crispEdges}
#fig-lifecycle .dash{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;stroke-dasharray:3 3}
#fig-lifecycle .h,#fig-lifecycle .win,#fig-lifecycle .canvas,#fig-lifecycle .tag,#fig-lifecycle .term,#fig-lifecycle .card,#fig-lifecycle .sqo,#fig-lifecycle .sqol,#fig-lifecycle .sqd,#fig-lifecycle .dash{vector-effect:non-scaling-stroke}
#fig-lifecycle *{animation-duration:30s;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.2,.8,.2,1);animation-fill-mode:both}
#fig-lifecycle .scene{animation-name:lc-scene}#fig-lifecycle .f2{animation-name:lc-fi2}#fig-lifecycle .f3{animation-name:lc-fi3}#fig-lifecycle .f4{animation-name:lc-fi4}#fig-lifecycle .a3{animation-name:lc-a3}#fig-lifecycle .arrow1{animation-name:lc-a1}#fig-lifecycle .cl1{animation-name:lc-cl1}#fig-lifecycle .cl2{animation-name:lc-cl2}#fig-lifecycle .cl3{animation-name:lc-cl3}#fig-lifecycle .cl4{animation-name:lc-cl4}#fig-lifecycle .blink{animation-name:lc-blink;animation-duration:1s;animation-timing-function:steps(1)}#fig-lifecycle .arrow2{animation-name:lc-a2}#fig-lifecycle .p1{animation-name:lc-pgel1}#fig-lifecycle .p2{animation-name:lc-pgel2}#fig-lifecycle .p3{animation-name:lc-pgel3}#fig-lifecycle .p4{animation-name:lc-pgel4}#fig-lifecycle .rep{animation-name:lc-rep}#fig-lifecycle .insp{animation-name:lc-insp}#fig-lifecycle .loopa{animation-name:lc-loopa}#fig-lifecycle .pub{animation-name:lc-pub}#fig-lifecycle .s1{animation-name:lc-s1}#fig-lifecycle .s2{animation-name:lc-s2}#fig-lifecycle .s3{animation-name:lc-s3}#fig-lifecycle .s4{animation-name:lc-s4}#fig-lifecycle .s5{animation-name:lc-s5}
@keyframes lc-scene{0%{opacity:0}4.44%,94.44%{opacity:1}98.89%,100%{opacity:0}}@keyframes lc-fi2{0%,9.45%{opacity:0;transform:translateX(-6px)}12.22%,100%{opacity:1;transform:none}}@keyframes lc-fi3{0%,12.23%{opacity:0;transform:translateX(-6px)}15.00%,100%{opacity:1;transform:none}}@keyframes lc-fi4{0%,15.00%{opacity:0;transform:translateX(-6px)}17.77%,100%{opacity:1;transform:none}}@keyframes lc-a3{0%,17%{opacity:0}19.44%,100%{opacity:1}}@keyframes lc-a1{0%,22.22%{opacity:0}25%,100%{opacity:1}}@keyframes lc-cl1{0%,30.00%{opacity:0}32.22%,100%{opacity:1}}@keyframes lc-cl2{0%,32.78%{opacity:0}35.00%,100%{opacity:1}}@keyframes lc-cl3{0%,35.56%{opacity:0}37.78%,100%{opacity:1}}@keyframes lc-cl4{0%,38.33%{opacity:0}40.55%,100%{opacity:1}}@keyframes lc-blink{0%,49%{opacity:1}50%,100%{opacity:0}}@keyframes lc-a2{0%,41.11%{opacity:0}43.89%,100%{opacity:1}}@keyframes lc-pgel1{0%,48.33%{opacity:0;transform:translateY(4px)}51.67%,100%{opacity:1;transform:none}}@keyframes lc-pgel2{0%,50.00%{opacity:0;transform:translateY(4px)}53.34%,100%{opacity:1;transform:none}}@keyframes lc-pgel3{0%,51.66%{opacity:0;transform:translateY(4px)}55.00%,100%{opacity:1;transform:none}}@keyframes lc-pgel4{0%,53.33%{opacity:0;transform:translateY(4px)}56.67%,100%{opacity:1;transform:none}}@keyframes lc-rep{0%,55%{opacity:0}57.78%,100%{opacity:1}}@keyframes lc-insp{0%,66.67%{opacity:0}69.44%,100%{opacity:1}}@keyframes lc-loopa{0%,78.89%{opacity:0}81.67%,85.56%{opacity:1}87.78%,100%{opacity:0}}@keyframes lc-pub{0%,85.56%{opacity:0}88.33%,100%{opacity:1}}@keyframes lc-s1{0%,4.44%{opacity:0}6.67%,25%{opacity:1}27.22%,100%{opacity:0}}@keyframes lc-s2{0%,27.22%{opacity:0}29.44%,45%{opacity:1}47.22%,100%{opacity:0}}@keyframes lc-s3{0%,47.22%{opacity:0}49.44%,65.56%{opacity:1}67.78%,100%{opacity:0}}@keyframes lc-s4{0%,67.78%{opacity:0}70%,84.44%{opacity:1}86.67%,100%{opacity:0}}@keyframes lc-s5{0%,86.67%{opacity:0}88.89%,100%{opacity:1}}
@media (prefers-reduced-motion:reduce){#fig-lifecycle *{animation:none !important}#fig-lifecycle .rmh{display:none}}
@media (max-width:600px){#fig-lifecycle .caps,#fig-lifecycle .mob-hide{display:none}#fig-lifecycle-cap{display:block;font-family:'sohne-mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:300;letter-spacing:-.012em;text-transform:uppercase;line-height:1.4;color:var(--squareTextColor,#1e1e1e)}}
</style>
<text x="0" y="16" class="m">/ render lifecycle</text>
<path d="M0 24L708 24" class="h"></path>
<g class="scene">
<rect x="0.5" y="36.5" width="707" height="359" class="win"></rect>
<rect x="1" y="37" width="706" height="20" class="frame"></rect>
<path transform="translate(5,41)" d="M11 0H1V1H0V11H1V12H11V11H12V1H11V0ZM11 1V11H1V1H11ZM6 7H10V8H6V7ZM3 7H2V8H3V7ZM4 6V7H3V6H4ZM4 5V6H5V5H4ZM3 4H4V5H3V4ZM3 4V3H2V4H3Z" class="ico" fill-rule="evenodd"></path>
<path transform="translate(691,41)" d="M-8.74228e-08 10L8 10L8 9L11 9L11 10L12 10L12 11L11 11L11 12L8 12L8 11L-4.37113e-08 11L-8.74228e-08 10ZM-3.93402e-07 3L-4.37114e-07 2L8 2L8 1L11 1L11 2L12 2L12 3L11 3L11 4L8 4L8 3L-3.93402e-07 3ZM1 6L-2.62268e-07 6L-2.18557e-07 7L1 7L1 8L4 8L4 7L12 7L12 6L4 6L4 5L1 5L1 6ZM9 2L10 2L10 3L9 3L9 2ZM10 10L9 10L9 11L10 11L10 10ZM2 6L3 6L3 7L2 7L2 6Z" class="ico" fill-rule="evenodd"></path>
<text x="354" y="50.1" class="m fig" text-anchor="middle">[ fig. 1 ]</text>
<rect x="1" y="57" width="4" height="338" class="frame"></rect>
<rect x="703" y="57" width="4" height="338" class="frame"></rect>
<rect x="1" y="391" width="706" height="4" class="frame"></rect>
<rect x="5.5" y="57.5" width="697" height="333" rx="2" fill="url(#lc-grid)" class="canvas"></rect>
<text x="17" y="84" class="m">/ 01 · agent writes files</text>
<path d="M17 92L223 92" class="h"></path>
<rect x="17.5" y="104.5" width="205" height="247" class="win"></rect>
<rect x="18" y="105" width="204" height="20" class="frame"></rect>
<text x="120" y="118.1" class="m fig" text-anchor="middle">chat</text>
<rect x="18" y="125" width="204" height="226" class="pane"></rect>
<text x="251" y="84" class="m">/ 02 · drydock compiles</text>
<path d="M251 92L457 92" class="h"></path>
<rect x="251.5" y="104.5" width="205" height="247" class="win"></rect>
<rect x="252" y="105" width="204" height="20" class="frame"></rect>
<text x="354" y="118.1" class="m fig" text-anchor="middle">drydock</text>
<rect x="252" y="125" width="204" height="226" class="pane"></rect>
<text x="485" y="84" class="m">/ 03 · agent inspects page</text>
<path d="M485 92L691 92" class="h"></path>
<rect x="485.5" y="104.5" width="205" height="247" class="win"></rect>
<rect x="486" y="105" width="204" height="20" class="frame"></rect>
<text x="588" y="118.1" class="m fig" text-anchor="middle">prototype</text>
<rect x="486" y="125" width="204" height="226" class="pane"></rect>
<g class="arrow1"><text x="237" y="232.7" class="m" text-anchor="middle">→</text></g>
<g class="arrow2"><text x="471" y="232.7" class="m" text-anchor="middle">→</text></g>
<rect x="29.5" y="132.5" width="181" height="35" class="tag"></rect><text x="35" y="146" class="m s10 tt">“a pricing page with three</text><text x="35" y="160" class="m s10 tt">plans + a compare button”</text>
<text x="29" y="188" class="m s10 mute">/ source tree · 4 files</text>
<g class="f1"><rect x="29" y="200.5" width="6" height="6" class="sq"></rect><text x="41" y="208" class="m">app.tsx</text></g>
<g class="f2"><rect x="29" y="220.5" width="6" height="6" class="sq"></rect><text x="41" y="228" class="m">plancard.tsx</text></g>
<g class="f3"><rect x="29" y="240.5" width="6" height="6" class="sq"></rect><text x="41" y="248" class="m">plans.json</text></g>
<g class="f4"><rect x="29" y="260.5" width="6" height="6" class="sq"></rect><text x="41" y="268" class="m">styles.css</text></g>
<g class="a3"><rect x="18" y="333" width="204" height="18" class="termf"></rect><path d="M18 333.5H222" class="hc"></path><text x="29" y="345.9" class="m s10 light">&gt; agent · edits app.tsx</text></g>
<text x="263" y="146" class="m s10 mute">in the browser · no server</text>
<rect x="263.5" y="156.5" width="181" height="83" class="term"></rect>
<g class="cl1"><text x="273" y="175" class="m s10 light">&gt; resolve · 4 files</text></g>
<g class="cl2"><text x="273" y="189" class="m s10 light">&gt; compile · tsx → js</text></g>
<g class="cl3"><text x="273" y="203" class="m s10 light">&gt; mount · #root · styles</text></g>
<g class="cl4"><text x="273" y="217" class="m s10 light">&gt; report · no failures</text></g>
<rect class="blink sql" x="273" y="222" width="4" height="8"></rect>
<text x="263" y="264" class="m s10 mute">/ contract</text>
<rect x="263.5" y="272.5" width="171" height="17" class="tag"></rect><text x="269" y="285.7" class="m tt">in · files: react + ts</text>
<rect x="263.5" y="298.5" width="151" height="17" class="tag"></rect><text x="269" y="311.7" class="m tt">out · page + report</text>
<g class="p1"><text x="497" y="148" class="" font-size="14" font-weight="500" letter-spacing="-.02em">Plans</text><path d="M497 154L601 154" class="h"></path></g>
<g class="p2"><rect x="497.5" y="164.5" width="181" height="27" class="card"></rect><text x="505" y="181.9" font-size="10" font-weight="500">Starter</text><text x="671" y="181.9" class="m s10 mute" text-anchor="end">$0</text></g>
<g class="p3"><rect x="497.5" y="200.5" width="181" height="27" class="card"></rect><text x="505" y="217.9" font-size="10" font-weight="500">Team</text><text x="671" y="217.9" class="m s10 mute" text-anchor="end">$99</text></g>
<g class="p4"><rect x="497.5" y="236.5" width="181" height="27" class="card"></rect><text x="505" y="253.9" font-size="10" font-weight="500">Enterprise</text><text x="671" y="253.9" class="m s10 mute" text-anchor="end">custom</text></g>
<g class="p4"><rect x="497.5" y="272.5" width="71" height="15" rx="7.5" class="h"></rect><text x="533" y="283.6" class="" text-anchor="middle" font-size="9">Compare plans</text></g>
<g class="insp"><rect x="497.5" y="296.5" width="135" height="17" class="tag"></rect><text x="503" y="309.7" class="m tt">viewport · 390 px</text></g>
<g class="rep"><rect x="497.5" y="322.5" width="159" height="17" class="tag lime"></rect><text x="503" y="335.7" class="m lt">report · no failures</text></g>
<g class="loopa rmh"><path d="M679 352.5V369.5H443.2M264.8 369.5H29V352.5" class="h"></path><path d="M26 356.5l3-4 3 4" class="h"></path><text x="354" y="372.9" class="m s10 mute" text-anchor="middle">report → the agent iterates</text></g>
<g class="pub"><text x="29" y="373.7" class="m">/ 04 · publish</text><text x="144.416" y="373.7" class="m">→</text><g transform="translate(175,0)"><rect x="0.5" y="360.5" width="163" height="17" class="tag"></rect><rect x="6" y="366" width="6" height="6" class="sq"></rect><text x="18" y="373.7" class="m tt">viewer a · compiles</text></g><g transform="translate(351,0)"><rect x="0.5" y="360.5" width="163" height="17" class="tag"></rect><rect x="6" y="366" width="6" height="6" class="sq"></rect><text x="18" y="373.7" class="m tt">viewer b · compiles</text></g><g transform="translate(527,0)"><rect x="0.5" y="360.5" width="163" height="17" class="tag"></rect><rect x="6" y="366" width="6" height="6" class="sq"></rect><text x="18" y="373.7" class="m tt">viewer c · compiles</text></g></g>
<g class="caps">
<text x="0" y="420" class="m s1 rmh">/ 01 · the agent writes a multi-file source tree from the prompt</text>
<text x="0" y="420" class="m s2 rmh">/ 02 · drydock compiles it in the browser and returns a running page with a report</text>
<text x="0" y="420" class="m s3 rmh">/ 03 · the page renders in the tab; compile and runtime failures land in the report</text>
<text x="0" y="420" class="m s4 rmh">/ 04 · the agent reads the page, switches viewport, screenshots, and edits files again</text>
<text x="0" y="420" class="m s5">/ 05 · on publish, one snapshot is shared; every viewer’s browser compiles that copy fresh</text>
</g></g>
</svg>
<p id="fig-lifecycle-cap" class="text-smallcaps">The agent writes files; Drydock compiles them in the browser; the agent inspects and iterates; viewers compile the copy.</p>
<p>Authors can give permission for others to comment on an element of the page or remix the published prototype into a copy of their own.</p>
<p>As prototypes became inputs to reviews, analyses, and production work, Stripes needed better ways to discuss changing designs and move them between AI tools. In the next sections, we’ll cover how we added commenting in Harbor, and how we integrated Harbor into other AI tooling at Stripe.</p>
<h3>Anchoring comments to changing prototypes</h3>
<p>As more Stripes began using Harbor, they wanted to leave comments. Because Harbor prototypes can change, people and agents need to easily understand comments in their right context. We built comments so they could stay connected to what prompted them, and let people and the agent know when that connection has changed.</p>
<p>Anchoring a comment to a page that the agent keeps rewriting is challenging. Harbor solves this by capturing several signals, including semantic labels, stable identifiers, text evidence, structural paths, list keys, and the surrounding context, such as a dialog or accordion, that needs to be opened to reveal the element. It also records whether a signal was unique at the time. When the agent updates the prototype, the resolution flow uses the stored information to report if the comment’s anchor element is attached, needs review, or is orphaned, rather than silently moving the comment to a plausible replacement.</p>
<svg xmlns="http://www.w3.org/2000/svg" id="fig-anchoring" viewBox="0 0 708 400" style="display:block;width:100%;height:auto;margin:24px 0 0" role="img" aria-labelledby="an-t an-d">
<title id="an-t">How Harbor anchors a reviewer’s comment to a card after the agent rewrites the page</title>
<desc id="an-d">A reviewer pins a comment to the Team plan card. Harbor records several signals for the anchor. The agent rewrites the page: cards move, one changes, one is removed. Each comment re-resolves as attached, needs review, or orphaned.</desc>
<defs><pattern id="an-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" style="fill:var(--artGridDotColor,var(--windowBarText,#1e1e1e))" opacity=".2"></circle></pattern></defs>
<style>
#fig-anchoring-cap{display:none;margin:8px 0 0}
#fig-anchoring text{font-family:'sohne-var','Helvetica Neue',Arial,sans-serif;fill:var(--bodyTextColor,#1e1e1e)}
#fig-anchoring .m{font-family:'sohne-mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:300;letter-spacing:-.012em;font-size:12px;text-transform:uppercase;fill:var(--squareTextColor,#1e1e1e)}
#fig-anchoring .s10{font-size:10px}#fig-anchoring .fig{font-size:8px;fill:var(--windowBarText,#1e1e1e)}#fig-anchoring .bt{fill:var(--windowBarText,#1e1e1e)}
#fig-anchoring .mute{fill-opacity:.55}#fig-anchoring .tt{fill:var(--tagTextColor,#1e1e1e)}#fig-anchoring .lt{fill:var(--invertedTextColor,#1e1e1e)}#fig-anchoring .light{fill:var(--bodyTextColor,#1e1e1e)}
#fig-anchoring .h{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;shape-rendering:crispEdges}
#fig-anchoring .win{fill:var(--artBackground,transparent);stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-anchoring .frame{fill:var(--windowFrameBG,#dcdcdc)}#fig-anchoring .ico{fill:var(--windowBarText,#1e1e1e)}
#fig-anchoring .canvas{stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-anchoring .pane{fill:var(--artForeground,#e8e8e8)}
#fig-anchoring .tag{fill:var(--artForeground,#e8e8e8);stroke:var(--tagBorderColor,#1e1e1e44);stroke-width:1;stroke-dasharray:1 1;rx:3}#fig-anchoring .lime{fill:var(--tagHighlightColor,#c4e817)}
#fig-anchoring .term{fill:var(--codeBG,#f5f5f5);stroke:var(--codeBorderColor,#d5d5d5);stroke-width:1;rx:4}#fig-anchoring .termf{fill:var(--codeBG,#f5f5f5)}#fig-anchoring .hc{fill:none;stroke:var(--codeBorderColor,#d5d5d5);stroke-width:1;shape-rendering:crispEdges;vector-effect:non-scaling-stroke}
#fig-anchoring .pinbg{fill:var(--artForeground,#e8e8e8)}#fig-anchoring .sq{fill:var(--artStroke,#1e1e1e)}#fig-anchoring .sql{fill:var(--bodyTextColor,#1e1e1e)}#fig-anchoring .sqo{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1}#fig-anchoring .sqol{fill:none;stroke:var(--bodyTextColor,#1e1e1e);stroke-width:1}#fig-anchoring .sqd{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;stroke-dasharray:1.5 1.5;stroke-opacity:.6}
#fig-anchoring .card{fill:var(--artForeground,#e8e8e8);stroke:var(--artStroke,#1e1e1e);stroke-width:1;shape-rendering:crispEdges}
#fig-anchoring .dash{fill:none;stroke:var(--artStroke,#1e1e1e);stroke-width:1;stroke-dasharray:3 3}
#fig-anchoring .h,#fig-anchoring .win,#fig-anchoring .canvas,#fig-anchoring .tag,#fig-anchoring .term,#fig-anchoring .card,#fig-anchoring .sqo,#fig-anchoring .sqol,#fig-anchoring .sqd,#fig-anchoring .dash{vector-effect:non-scaling-stroke}
#fig-anchoring *{animation-duration:30s;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(.2,.8,.2,1);animation-fill-mode:both}
#fig-anchoring .scene{animation-name:an-scene}#fig-anchoring .c1t{animation-name:an-c1t}#fig-anchoring .c1n{animation-name:an-c1n}#fig-anchoring .n2{animation-name:an-c1t}#fig-anchoring .n3{animation-name:an-c1n}#fig-anchoring .c2{animation-name:an-c2}#fig-anchoring .c3{animation-name:an-c3}#fig-anchoring .cn{animation-name:an-cn}#fig-anchoring .flk{animation-name:an-flk}#fig-anchoring .con{animation-name:an-con}#fig-anchoring .blink{animation-name:an-blink;animation-duration:1s;animation-timing-function:steps(1)}#fig-anchoring .cur{animation-name:an-cur}#fig-anchoring .pinA{animation-name:an-pinA}#fig-anchoring .trail{animation-name:an-trail}#fig-anchoring .lead{animation-name:an-lead}#fig-anchoring .pS{animation-name:an-pS}#fig-anchoring .d0{animation-name:an-sig0}#fig-anchoring .d1{animation-name:an-sig1}#fig-anchoring .d2{animation-name:an-sig2}#fig-anchoring .d3{animation-name:an-sig3}#fig-anchoring .d4{animation-name:an-sig4}#fig-anchoring .d5{animation-name:an-sig5}#fig-anchoring .d6{animation-name:an-sig6}#fig-anchoring .pR{animation-name:an-pR}#fig-anchoring .rOk{animation-name:an-rOk}#fig-anchoring .pinB{animation-name:an-pinB}#fig-anchoring .rWarn{animation-name:an-rWarn}#fig-anchoring .pinC{animation-name:an-pinC}#fig-anchoring .rOrph{animation-name:an-rOrph}#fig-anchoring .s1{animation-name:an-s1}#fig-anchoring .s2{animation-name:an-s2}#fig-anchoring .s3{animation-name:an-s3}#fig-anchoring .s4{animation-name:an-s4}
@keyframes an-scene{0%{opacity:0}4.44%,94.44%{opacity:1}98.89%,100%{opacity:0}}@keyframes an-c1t{0%,57.22%{opacity:1}58.89%,100%{opacity:0}}@keyframes an-c1n{0%,57.78%{opacity:0}59.44%,100%{opacity:1}}@keyframes an-c2{0%,55%{transform:translate(0,0)}60%,100%{transform:translate(0,52px)}}@keyframes an-c3{0%,52.22%{opacity:1;transform:translate(0,0)}54.44%,100%{opacity:0;transform:translate(8px,0)}}@keyframes an-cn{0%,57.22%{opacity:0;transform:translate(-8px,0)}60.56%,100%{opacity:1;transform:translate(0,0)}}@keyframes an-flk{0%,50.56%{opacity:0}52.22%,57.78%{opacity:.7}60.00%,100%{opacity:0}}@keyframes an-con{0%,47.78%{opacity:0}49.44%,62.22%{opacity:1}63.89%,100%{opacity:0}}@keyframes an-blink{0%,49%{opacity:1}50%,100%{opacity:0}}@keyframes an-cur{0%,6.67%{opacity:0;transform:translate(440px,380px)}8.33%{opacity:1;transform:translate(440px,380px)}13.89%{opacity:1;transform:translate(260px,200px)}16.67%{opacity:1;transform:translate(260px,200px)}18.89%,100%{opacity:0;transform:translate(260px,200px)}}@keyframes an-pinA{0%,13.89%{opacity:0;transform:translate(260px,200px)}16.11%{opacity:1;transform:translate(260px,200px)}55%{opacity:1;transform:translate(260px,200px)}60%,100%{opacity:1;transform:translate(260px,252px)}}@keyframes an-trail{0%,55%{opacity:0;transform:scaleY(0)}55.01%{opacity:1;transform:scaleY(0)}60%,65.56%{opacity:1;transform:scaleY(1)}68.89%,100%{opacity:0;transform:scaleY(1)}}@keyframes an-lead{0%,16.67%{opacity:0}18.89%,46.67%{opacity:1}49.44%,100%{opacity:0}}@keyframes an-pS{0%,25.56%{opacity:0}27.78%,46.67%{opacity:1}49.44%,100%{opacity:0}}@keyframes an-sig0{0%,27.78%{opacity:0;transform:translateX(-4px)}30.00%,100%{opacity:1;transform:none}}@keyframes an-sig1{0%,29.45%{opacity:0;transform:translateX(-4px)}31.67%,100%{opacity:1;transform:none}}@keyframes an-sig2{0%,31.11%{opacity:0;transform:translateX(-4px)}33.33%,100%{opacity:1;transform:none}}@keyframes an-sig3{0%,32.78%{opacity:0;transform:translateX(-4px)}35.00%,100%{opacity:1;transform:none}}@keyframes an-sig4{0%,34.45%{opacity:0;transform:translateX(-4px)}36.67%,100%{opacity:1;transform:none}}@keyframes an-sig5{0%,36.11%{opacity:0;transform:translateX(-4px)}38.33%,100%{opacity:1;transform:none}}@keyframes an-sig6{0%,37.78%{opacity:0;transform:translateX(-4px)}40.00%,100%{opacity:1;transform:none}}@keyframes an-pR{0%,65.56%{opacity:0}67.78%,100%{opacity:1}}@keyframes an-rOk{0%,68.89%{opacity:0}71.11%,100%{opacity:1}}@keyframes an-pinB{0%,74.44%{opacity:0;transform:translate(260px,148px)}76.67%,100%{opacity:1;transform:translate(260px,148px)}}@keyframes an-rWarn{0%,75.56%{opacity:0}77.78%,100%{opacity:1}}@keyframes an-pinC{0%,82.78%{opacity:0;transform:translate(260px,284px)}85.00%{opacity:1;transform:translate(260px,284px)}88.33%,100%{opacity:.6;transform:translate(260px,284px)}}@keyframes an-rOrph{0%,81.11%{opacity:0}83.33%,100%{opacity:1}}@keyframes an-s1{0%,4.44%{opacity:0}6.67%,23.33%{opacity:1}25.56%,100%{opacity:0}}@keyframes an-s2{0%,25.56%{opacity:0}27.78%,46.67%{opacity:1}48.89%,100%{opacity:0}}@keyframes an-s3{0%,47.78%{opacity:0}50.00%,63.33%{opacity:1}65.56%,100%{opacity:0}}@keyframes an-s4{0%,65.56%{opacity:0}67.78%,100%{opacity:1}}
@media (prefers-reduced-motion:reduce){#fig-anchoring *{animation:none !important}#fig-anchoring .rmh{display:none}#fig-anchoring .c2{transform:translate(0,52px)}#fig-anchoring .rms{display:inline}}
@media (max-width:600px){#fig-anchoring .caps,#fig-anchoring .mob-hide{display:none}#fig-anchoring-cap{display:block;font-family:'sohne-mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:300;letter-spacing:-.012em;text-transform:uppercase;line-height:1.4;color:var(--squareTextColor,#1e1e1e)}}
</style>
<text x="0" y="16" class="m">/ comment anchoring</text>
<path d="M0 24L708 24" class="h"></path>
<g class="scene">
<rect x="0.5" y="36.5" width="707" height="331" class="win"></rect>
<rect x="1" y="37" width="706" height="20" class="frame"></rect>
<path transform="translate(5,41)" d="M11 0H1V1H0V11H1V12H11V11H12V1H11V0ZM11 1V11H1V1H11ZM6 7H10V8H6V7ZM3 7H2V8H3V7ZM4 6V7H3V6H4ZM4 5V6H5V5H4ZM3 4H4V5H3V4ZM3 4V3H2V4H3Z" class="ico" fill-rule="evenodd"></path>
<path transform="translate(691,41)" d="M-8.74228e-08 10L8 10L8 9L11 9L11 10L12 10L12 11L11 11L11 12L8 12L8 11L-4.37113e-08 11L-8.74228e-08 10ZM-3.93402e-07 3L-4.37114e-07 2L8 2L8 1L11 1L11 2L12 2L12 3L11 3L11 4L8 4L8 3L-3.93402e-07 3ZM1 6L-2.62268e-07 6L-2.18557e-07 7L1 7L1 8L4 8L4 7L12 7L12 6L4 6L4 5L1 5L1 6ZM9 2L10 2L10 3L9 3L9 2ZM10 10L9 10L9 11L10 11L10 10ZM2 6L3 6L3 7L2 7L2 6Z" class="ico" fill-rule="evenodd"></path>
<text x="354" y="50.1" class="m fig" text-anchor="middle">[ fig. 2 ]</text>
<rect x="1" y="57" width="4" height="310" class="frame"></rect>
<rect x="703" y="57" width="4" height="310" class="frame"></rect>
<rect x="1" y="363" width="706" height="4" class="frame"></rect>
<rect x="5.5" y="57.5" width="697" height="305" rx="2" fill="url(#an-grid)" class="canvas"></rect>
<rect x="17.5" y="69.5" width="474" height="282" class="win"></rect>
<rect x="18" y="70" width="473" height="20" class="frame"></rect>
<text x="254.5" y="83.1" class="m fig" text-anchor="middle">prototype · published</text>
<rect x="18" y="90" width="473" height="261" class="pane"></rect>
<text x="29" y="114" class="" font-size="20" font-weight="500" letter-spacing="-.02em">Plans</text>
<path d="M29 120L219 120" class="h"></path>
<g><rect x="29.5" y="128.5" width="450" height="39" class="card"></rect><text x="41" y="145" font-size="14" font-weight="500"><tspan class="c1t">Starter</tspan><tspan class="c1n" x="41">Starter Plus</tspan></text><text x="41" y="159" class="m s10 mute">individuals · $0 / month</text><text x="468" y="145" class="m mute" text-anchor="end">01</text></g>
<g class="c2"><rect x="29.5" y="180.5" width="450" height="39" class="card"></rect><text x="41" y="197" font-size="14" font-weight="500">Team</text><text x="41" y="211" class="m s10 mute">growing teams · $99 / month</text><text x="468" y="197" text-anchor="end" class="m mute"><tspan class="n2 rmh">02</tspan><tspan class="n3" x="468">03</tspan></text></g>
<g class="c3 rmh"><rect x="29.5" y="232.5" width="450" height="39" class="card"></rect><text x="41" y="249" font-size="14" font-weight="500">Enterprise</text><text x="41" y="263" class="m s10 mute">custom · sso · dedicated support</text><text x="468" y="249" class="m mute" text-anchor="end">03</text></g>
<g class="cn"><rect x="29.5" y="180.5" width="450" height="39" class="card"></rect><text x="41" y="197" font-size="14" font-weight="500">Growth</text><text x="41" y="211" class="m s10 mute">small teams · $49 / month</text><text x="468" y="197" class="m mute" text-anchor="end">02</text></g>
<g class="rOrph"><text x="29" y="288" class="m s10 mute">enterprise · removed by the rewrite</text></g>
<rect x="29.5" y="300.5" width="95" height="19" rx="9.5" class="h"></rect><text x="77" y="313.9" class="" text-anchor="middle" font-size="10">Compare plans</text>
<rect x="25.5" y="124.5" width="458" height="151" class="dash flk rmh"></rect>
<g class="con rmh"><rect x="18" y="333" width="473" height="18" class="termf"></rect><path d="M18 333.5H491" class="hc"></path><text x="29" y="345.9" class="m s10 light">&gt; agent · rewriting the page</text><rect class="blink light sql" x="205" y="337" width="4" height="10"></rect></g>
<g class="cur rmh"><path d="M0 0v12l3-3h5z" class="sq"></path></g>
<g class="trail rmh" style="transform-origin:260px 206px"><path d="M260 206V246" class="h" stroke-dasharray="2 2"></path></g>
<g class="pinA" transform="translate(260,252.0)"><rect x="-6" y="-6" width="12" height="12" class="pinbg"></rect><rect x="-5.5" y="-5.5" width="11" height="11" class="sqo"></rect><rect x="-3" y="-3" width="6" height="6" class="sq"></rect></g>
<g class="pinB" transform="translate(260,148.0)"><rect x="-6" y="-6" width="12" height="12" class="pinbg"></rect><rect x="-5.5" y="-5.5" width="11" height="11" class="sqo"></rect><rect x="-2.5" y="-2.5" width="5" height="5" class="sqo"></rect></g>
<g class="pinC" transform="translate(260,284)"><rect x="-6" y="-6" width="12" height="12" class="pinbg"></rect><rect x="-5.5" y="-5.5" width="11" height="11" class="sqd"></rect></g>
<g class="panel">
<g class="pR"><text x="504" y="84" class="m">/ resolution</text><path d="M504 92L691 92" class="h"></path></g>
<g class="pS rmh"><text x="504" y="84" class="m">/ signals recorded</text><path d="M504 92L691 92" class="h"></path>
<g class="lead rmh"><rect x="504.5" y="104.5" width="179" height="17" class="tag"></rect><rect x="510" y="110" width="6" height="6" class="sq"></rect><text x="522" y="117.7" class="m tt">comment · “price ok?”</text></g>
<g class="sig d0 rmh"><rect x="504.5" y="134.5" width="171" height="17" class="tag"></rect><rect x="510" y="140" width="6" height="6" class="sq"></rect><text x="522" y="147.7" class="m tt">label · card:pricing</text></g>
<g class="sig d1 rmh"><rect x="504.5" y="160.5" width="127" height="17" class="tag"></rect><rect x="510" y="166" width="6" height="6" class="sq"></rect><text x="522" y="173.7" class="m tt">id · plan-team</text></g>
<g class="sig d2 rmh"><rect x="504.5" y="186.5" width="119" height="17" class="tag"></rect><rect x="510" y="192" width="6" height="6" class="sq"></rect><text x="522" y="199.7" class="m tt">text · “team”</text></g>
<g class="sig d3 rmh"><rect x="504.5" y="212.5" width="171" height="17" class="tag"></rect><rect x="510.5" y="218.5" width="5" height="5" class="sqo"></rect><text x="522" y="225.7" class="m tt">path · main/ul/li[2]</text></g>
<g class="sig d4 rmh"><rect x="504.5" y="238.5" width="135" height="17" class="tag"></rect><rect x="510" y="244" width="6" height="6" class="sq"></rect><text x="522" y="251.7" class="m tt">list key · team</text></g>
<g class="sig d5 rmh"><rect x="504.5" y="264.5" width="119" height="17" class="tag"></rect><rect x="510.5" y="270.5" width="5" height="5" class="sqo"></rect><text x="522" y="277.7" class="m tt">reveal · none</text></g>
<g class="sig d6 rmh"><rect x="504" y="297" width="6" height="6" class="sq"></rect><text x="516" y="303.9" class="m s10 mute">unique</text><rect x="568.5" y="297.5" width="5" height="5" class="sqo"></rect><text x="580" y="303.9" class="m s10 mute">not unique</text></g></g>
<g class="rWarn"><rect x="504.5" y="139.5" width="175" height="17" class="term"></rect><rect x="510.5" y="145.5" width="5" height="5" class="sqol"></rect><text x="522" y="152.7" class="m light">review · text changed</text></g>
<g class="rOk"><rect x="504.5" y="243.5" width="175" height="17" class="tag lime"></rect><rect x="510" y="249" width="6" height="6" class="sq"></rect><text x="522" y="256.7" class="m lt">attached · card moved</text></g>
<g class="rOrph"><rect x="504.5" y="279.5" width="155" height="17" class="tag"></rect><rect x="510.5" y="285.5" width="5" height="5" class="sqd"></rect><text x="522" y="292.7" class="m tt">orphaned · removed</text></g>
</g>
<g class="caps">
<text x="0" y="392" class="m s1 rmh">/ 01 · a reviewer pins a comment to the team card</text>
<text x="0" y="392" class="m s2 rmh">/ 02 · harbor records several signals for the anchor, and whether each was unique</text>
<text x="0" y="392" class="m s3 rmh">/ 03 · the agent rewrites the page: cards move, one changes, one is removed</text>
<text x="0" y="392" class="m s4">/ 04 · comments re-resolve: attached, needs review, or orphaned. nothing is silently moved</text>
</g></g>
</svg>
<p id="fig-anchoring-cap" class="text-smallcaps">A comment is pinned; the agent rewrites the page; it re-resolves: attached, needs review, or orphaned.</p>
<p>Published comments are tied to the version of the prototype where they were posted. When the author publishes a new snapshot, Harbor marks existing comments as stale so reviewers can tell which version the feedback is for.</p>
<h3>Integrating Harbor with other AI tools</h3>
<p>Harbor’s in-browser experience worked well for designers, but Stripes working in our other AI tools wanted to access it from there, so they could bring interactive visual prototypes into existing workflows. Two architectural choices made this possible: exposing Harbor’s toolset over our internal Model Context Protocol (MCP) server, and exposing Drydock, Harbor’s rendering engine, as its own service.</p>
<p>Harbor exposes a toolset through Stripe’s MCP infrastructure that allows other agents to create, read, update, and publish a prototype without needing a person to manually copy context into a new conversation. The same toolset is available to coding agents working on Stripe devboxes. They can pull a Harbor prototype’s file tree into a real repository, or push an idea from another workflow into Harbor for visual exploration. The handoff preserves the decisions around ownership and implementation while eliminating manual transcription between tools.</p>
<p>Drydock, Harbor’s rendering engine, has a small contract: it takes a multi-file React and TypeScript file tree and returns a running page inside the browser, alongside a report that includes compile and runtime failures, so that the agent can inspect and interact with the running result. Because that contract doesn’t depend on anything else in Harbor, other tools across Stripe can use it. This was particularly useful in Kai, our AI platform for knowledge work. Harbor gave Kai users the means to take the next step with a prototype. One of our producers, who run stripe.com programs across design, engineering, and editorial, ran a viewport analysis of <a href="https://stripe.com/">stripe.com</a> in Kai, then used Harbor to turn the results into a clickable prototype.</p>
<h2>What we learned</h2>
<p>Harbor began as an experiment in building with AI. Now it gives all Stripes a way to rapidly experiment and iterate on visual prototypes. We started with solving a small, team-focused problem and expanded beyond its original boundary thanks to our <a href="https://mikebifulco.com/posts/how-stripe-uses-friction-logs">culture of friction logging</a>, AI-forward culture, and colleagues who were willing to try out the early version of a tool, share what they made, and help develop useful pieces into shared infrastructure.</p>
<p>In Stripe’s internal AI tools, we’ve found that it’s effective to keep agents specialized (on research, coding, or browser-native tools) while exposing them to capabilities in other systems. In our viewport analysis example, we started with research in Kai, and built an interactive prototype in Harbor. In other examples, engineers mocked up internal admin tools in Harbor, then handed the generated prototype to a coding agent to rebuild for production. And Harbor’s own rendering engine became infrastructure for Kai.</p>
<h2>What’s next</h2>
<p>Our goal is to continue to make Stripe’s AI tools work together rather than have each tool solve every part of the workflow. For Harbor, we want prototypes to hold small amounts of state and connect to live data. That includes prototype-scoped databases and embeddable widgets that refresh internal data queries on their own, instead of requiring an agent to copy numbers into the source and rewrite them whenever the data changes.</p>
<p>We’re still early in understanding what becomes possible when research, code, and interactive artifacts can move between AI tools without losing their context. There’s a lot left to build, and the work spans infrastructure, developer tools, product systems, and AI all at once. If that’s the kind of problem you want to work on, <a href="https://grnh.se/b5wzjpge1us">we’re hiring</a>.</p>]]></content:encoded></item><item><title><![CDATA[What if Stripe could work the way your business does]]></title><description><![CDATA[Discover how Stripe Scripts, Workflows, Custom Objects, and UI extensions help businesses customize logic, data, and operations directly within Stripe.]]></description><link>https://stripe.dev/blog/what-if-stripe-could-work-the-way-your-business-does</link><guid isPermaLink="true">https://stripe.dev/blog/what-if-stripe-could-work-the-way-your-business-does</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Mon, 07 Sep 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image2.png"/><link rel="preload" as="image" href="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image3.png"/><p>Stripe provides the financial infrastructure businesses need to accept payments, manage subscriptions, send invoices, and move money. For many businesses, Stripe’s default behavior is exactly what they need - it works without any additional customization.</p>
<p>Sooner or later, you need something specific: a custom proration rule, a multi-step fraud response, data that doesn’t fit an existing Stripe object, or a purpose-built Dashboard view for your operations team.</p>
<p>Traditionally, that meant building around Stripe. A webhook sends an event to your server, your application runs some logic, and then calls the Stripe API. It’s a flexible pattern, but every customization adds more infrastructure, and more responsibility for availability, retries, state, secrets, security, and error handling.</p>
<p><a href="https://docs.stripe.com/extensibility">Stripe extensibility</a> lets you move more of that customization into Stripe. In this post, you’ll learn how to extend Stripe across three dimensions: logic, data, and user interface, using <a href="https://docs.stripe.com/billing/scripts">scripts</a>, <a href="https://docs.stripe.com/workflows">Workflows</a>, <a href="https://docs.stripe.com/custom-objects">Custom Objects</a>, and <a href="https://docs.stripe.com/stripe-apps/build-ui">UI extensions</a>, and see how they work together in a complete example.</p>
<p>Prefer to watch? See how these capabilities work together in our Stripe Sessions talk, <a href="https://www.youtube.com/watch?v=1v5ik1t0azc">Extensibility with Scripts and Workflows</a>.</p>
<h2><strong>Three dimensions of extensibility</strong></h2>
<p>Most Stripe customizations fall into three dimensions:</p>
<ul>
<li><strong>Logic</strong> defines what should happen when something occurs in your business.</li>
<li><strong>Data</strong> represents the concepts and relationships that are unique to your business.</li>
<li><strong>User interface</strong> gives your team the tools it needs to view that data and take action.</li>
</ul>
<p>You can use each independently, but they become much more powerful when they work together. Your interface can display your custom data, your data can contain business-specific actions, and those actions can invoke your logic.</p>
<h2><strong>Logic: From default behavior to custom rules</strong></h2>
<p>The best place to begin is usually Stripe’s default behavior. If the default meets your needs, there is nothing else to build or maintain. When you need something different, configuration gives you additional options supplied by Stripe or a partner. You can change how something behaves without writing the logic yourself.</p>
<p>Some rules, however, belong only to your business, and that is where custom logic fits. For example, when a customer changes plans midway through a billing period, Stripe can calculate the credit for the old plan and the charge for the new one down to the second - this is called proration. That works for most businesses. Yours might round to the nearest day, waive adjustments below $5, or use an entirely different calculation.</p>
<p>With a <strong>script</strong>, you can write that rule in TypeScript and deploy it to Stripe. When Stripe reaches the proration decision in its billing flow, it invokes your code, receives an answer, and continues processing. The code runs in a secure environment on Stripe, without requiring a server for you to manage. Scripts are for singular decisions: Stripe asks a question and your code returns an answer.</p>
<p><img src="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image2.png" alt="Stripe Scripts"/></p>
<p>More complex requirements need a different process. For example, when an early fraud warning arrives, you might need to check the charge amount, issue a refund when it falls below a threshold, and notify your risk team in Slack.</p>
<p><strong>Stripe Workflows</strong> coordinates these steps in the correct order. Workflows can be triggered by a Stripe event, started by someone in the Dashboard, or called from your backend. It can combine Stripe API calls, third-party integrations, and custom actions without requiring you to build the surrounding orchestration infrastructure.</p>
<p>Scripts run code. Workflows coordinate work.</p>
<h2><strong>Data: Teach Stripe the language of your business</strong></h2>
<p>Everything in Stripe is an object. Customers, Products, Payments, Invoices, and Subscriptions are all objects that represent the core concepts Stripe understands. But your business likely has other concepts that do not fit neatly into those objects. Imagine a vehicle rental company called Rocket Rides. A Driver maps naturally to a Stripe Customer, but the company also needs to represent Vehicles and Rentals.</p>
<p>A Vehicle has a make, model, year, and vehicle identification number. A Rental has a start date, status, assigned vehicle, and driver. These are structured entities with validation rules and relationships, not simply additional labels.</p>
<p>You could store some of this information in metadata, but metadata is not a complete data model. It does not provide typed fields, enforce a schema, or express relationships between objects.</p>
<p><strong>Custom objects</strong> let you define these business-specific models inside Stripe. Rocket Rides can require every Vehicle to have a 17-character VIN and define a Rental that references both a Vehicle custom object and Stripe’s native Customer object.</p>
<p>In simplified TypeScript, that relationship looks like this:</p>
<pre><code class="language-typescript">interface RentalFields {
  startsAt: Date
  status: &#x27;upcoming&#x27; | &#x27;in_progress&#x27; | &#x27;completed&#x27;
  vehicle: Ref&lt;Vehicle&gt;
  driver: Ref&lt;Customer&gt;
}

@CustomObject
class Rental extends BaseObject&lt;RentalFields&gt; {}
</code></pre>
<p>Once deployed, Stripe provides APIs for creating, reading, updating, and deleting these objects. Your business-specific data now has structure, relationships, and the same platform foundation as native Stripe data.</p>
<p><img src="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image1.png" alt="Custom objects"/></p>
<h2><strong>User interface: Build where your team already works</strong></h2>
<p>APIs give developers access to your custom data, but operations and finance teams should not need to query an endpoint to understand what is happening.</p>
<p>With <strong>UI extensions</strong>, you can create pages and side panels inside the Stripe Dashboard using Stripe’s design system. You choose where the experience appears and which information it presents.</p>
<p>For Rocket Rides, that could be a rental operations page containing the vehicle details, driver, payment history, rental status, and inspection information. Instead of switching between Stripe and a separate internal tool, the operations team gets a single view designed around the way it works. Viewing the data is only part of the job. When a vehicle is returned, the team also needs to end the rental.</p>
<p><img src="https://stripe.dev/images/what-if-stripe-could-work-the-way-your-business-does/image3.png" alt="Custom UI"/></p>
<h2><strong>Bringing logic, data, and UI together</strong></h2>
<p>Rocket Rides can add an <strong>End Rental</strong> button to its custom Dashboard page. That button invokes an action defined on the Rental custom object.</p>
<p>When an operator selects it, the action updates the rental status, triggers the inspection workflow, and marks the vehicle as available again. The team remains in the Dashboard while custom logic runs against custom data and coordinates the next stage of the process.</p>
<p>This is where the three dimensions of extensibility become one connected system:</p>
<ul>
<li>Custom objects model Rentals and Vehicles.</li>
<li>A custom Dashboard page gives the operations team the right view.</li>
<li>An action provides a business-specific operation.</li>
<li>A workflow coordinates everything that must happen next.</li>
</ul>
<p>The team clicks one button, but behind it Stripe is operating in the language of the business.</p>
<h2><strong>Start with what you need</strong></h2>
<p>Extensibility does not mean every Stripe integration needs custom code. Start with the default. Use configuration when an existing option meets your requirements. Build custom logic, data, or interfaces when the requirement is genuinely unique to your business.</p>
<p>Scripts let you define individual decisions. Workflows coordinate processes over time. Custom objects represent the concepts that Stripe does not model natively. UI extensions give your team tailored pages, side panels, and actions inside the Dashboard.</p>
<p>Together, they let you extend Stripe without turning every customization into another standalone system your team must operate.</p>
<p>Stripe provides the foundation. Extensibility lets you build the business only you can build.</p>
<p>Start building with <a href="https://docs.stripe.com/extensibility">Stripe extensibility</a>.</p>]]></content:encoded></item><item><title><![CDATA[AI didn't write our SDK. It changed how we built it.]]></title><description><![CDATA[AI was involved at every stage of building Stripe's extensibility SDK, but the story isn't that it wrote code faster. Here's how prototypes, agent-drafted specs, and persistent guidance got ideas into reviewable shape sooner.]]></description><link>https://stripe.dev/blog/ai-didnt-write-our-sdk-it-changed-how-we-built-it</link><guid isPermaLink="true">https://stripe.dev/blog/ai-didnt-write-our-sdk-it-changed-how-we-built-it</guid><dc:creator><![CDATA[Mike North]]></dc:creator><pubDate>Fri, 28 Aug 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<p>When we shipped Stripe&#x27;s <a href="https://docs.stripe.com/stripe-apps">extensibility SDK</a> this year, AI was involved at every stage. But the story people expect - &quot;AI wrote a lot of code and we shipped faster&quot; - isn&#x27;t the interesting one.</p>
<p>The interesting part is what AI did to the stages that usually slow platform work down: the gap between an idea and a working prototype, between a prototype and a reviewable spec, between a spec and aligned implementation, and between implementation and polished deliverable.</p>
<p>AI compressed all of those gaps - not by replacing human judgment, but by making human judgment more effective by giving it better artifacts to operate on, earlier in the process. That changed the quality of our decisions, not just the speed of our output.</p>
<h2>Platform work has an abstraction problem</h2>
<p>When you&#x27;re building an SDK, you&#x27;re not building a feature a user clicks on. You&#x27;re building primitives other developers will compose. The hard questions aren&#x27;t &quot;can we build this?&quot; but &quot;should we build it this way?&quot;</p>
<p>What should the developer experience feel like? Where should boundaries live? What belongs in the model and what&#x27;s intentionally outside it? How do you keep six product surfaces coherent when each team could reasonably optimize in a different direction?</p>
<p>In a traditional cycle, you discuss the idea, write a design doc, debate feasibility in the abstract, eventually build a prototype, discover rough edges weeks later, and course-correct. Each stage is expensive, so you do fewer of them, sequentially.</p>
<p>That sequential cost is the real bottleneck in platform work, not the typing speed. The bottleneck is how long it takes to get from idea to an artifact the whole team can evaluate.</p>
<h2>A working prototype in two days</h2>
<p>Early on, we were shaping how developers would define custom objects and attach behavior to them - part product design, part architecture, part platform strategy. We weren&#x27;t asking &quot;can we add methods to <a href="https://docs.stripe.com/custom-objects">custom objects</a>?&quot; We were asking what the authoring experience should feel like, how much of the existing platform we could reuse, and whether the approach was sustainable as part of Stripe&#x27;s broader extensibility architecture.</p>
<p>Without AI, this would have been a two-to-three-week effort of stubbing out the type system, building the transform pipeline, wiring up the demo, and writing the docs. The kind of work that&#x27;s well-understood but time-consuming enough that you&#x27;d normally skip the prototype entirely and go straight to a design doc.</p>
<p>With an AI coding assistant, one engineer on the team built a working prototype in roughly two days - complete with a demo and documentation site.</p>
<p>That prototype wasn&#x27;t the production code we shipped. But it was conceptually close to the production direction: author-defined custom objects, methods attached to those objects, generated runtime machinery, and a model that reused existing platform pieces rather than creating a bespoke system.</p>
<p>The value wasn&#x27;t that one person built something fast. It was that the team&#x27;s conversation shifted from speculation to evaluation. Without the prototype, we&#x27;d have been debating a design document, and design documents require the suspension of disbelief. People have to imagine the developer experience, imagine the runtime behavior, imagine whether the pieces fit together. A working prototype removed that gap. The discussion moved from &quot;Could this work?&quot; to &quot;Is this the right shape?&quot; and &quot;Where should the boundaries live?&quot;</p>
<p>That prototype ultimately convinced us to reprioritize the feature into scope for our next major launch. The decision happened weeks earlier than it would have otherwise, because we had a concrete artifact to evaluate rather than a speculative proposal to debate.</p>
<h2>AI as architecture collaborator</h2>
<p>The next challenge was turning prototype intuition into coherent architecture.</p>
<p>Prototypes create momentum, but platform work needs clean boundaries and durable abstractions. AI became useful differently here: not writing implementation, but helping us explore and articulate the implications of design choices across multiple surfaces.</p>
<p>Much of the architectural work was sharpening important distinctions:</p>
<ul>
<li>Product code shouldn&#x27;t know or care how an extension is implemented</li>
<li>Low-latency enforcement belongs in deterministic declarative artifacts, not user-authored functions on every write path</li>
<li>A state machine is a lifecycle artifact; expressions are predicates inside that lifecycle</li>
<li>Dashboard-authored and code-authored experiences should wrap the same primitive, not fork into incompatible languages</li>
</ul>
<p>AI didn&#x27;t invent those distinctions (the team&#x27;s judgment was the source of truth) but AI helped us write down implications quickly enough to test whether our abstractions held across scripts, workflows, custom objects, SDK generation, runtime enforcement, and developer tooling.</p>
<p>Platform work is especially vulnerable to local optimization. Any individual surface can be made to work alone. The system only becomes coherent if the same abstractions hold everywhere. AI helped us keep more of the system in view at once.</p>
<h2>Spec-first agent delegation</h2>
<p>As the architecture solidified, we identified work naturally suited for delegation: bounded scope, clear correctness criteria, well-known patterns, strong connection to developer-facing behavior.</p>
<p>ESLint rules were a good example: they encode what&#x27;s allowed in the authoring experience, what&#x27;s unsafe, and what should fail early. But we didn&#x27;t hand an agent a vague goal and hope for the best. That&#x27;s the common failure mode with AI coding, and it produces work that looks plausible while quietly violating deeper constraints.</p>
<p>Instead, the workflow became disciplined:</p>
<ol>
<li>Identify work bounded enough for agent delegation</li>
<li>Ask the agent to draft a detailed spec</li>
<li>Review those specs as GitHub issues before implementation begins</li>
<li>Implement using agent skills grounded in domain-specific guidance</li>
<li>Review output against architectural intent</li>
</ol>
<p>Here&#x27;s what one of those specs looked like in practice. A GitHub issue for a rule that prevents developers from using bare numbers in Custom Object fields (they should use Integer or Decimal instead):</p>
<pre><code class="language-markdown">## Rule Contract

- Rule name: co/no-bare-number
- Purpose: Disallow bare `number` in Custom Object fields, requiring Integer or Decimal instead.
- Spec reference: S-002 Custom Object DDL §4, §3.7, §12.1
- Severity: error
- Auto-fix: yes
- Requires type-checker: yes

## Required Behavior

Applies only to *.object.ts files. Targets type positions within the fields type — the type argument F passed to BaseObject&lt;F&gt;. The type-checker is required to resolve aliases and nested references.

## Invalid Examples

interface OrderFields {
  total: number;     // error
  discount?: number; // error
}

type MyNum = number;

interface OrderFields {
  count: MyNum;      // error (resolved through alias)
}

## Valid Examples

interface OrderFields {
  total: Integer;
  rate: Decimal;
}

## Auto-fix behavior

* Offer two auto-fix options: update the field to use the `Integer` or `Decimal` types from the extensibility-sdk
</code></pre>
<p>The spec defines exactly what &quot;correct&quot; means: which files it applies to, what it catches, what it doesn&#x27;t, whether it auto-fixes. The agent drafts this, the team reviews and refines it, and only then does implementation begin. The review catches design issues such as &quot;should this also fire inside action parameter types?&quot; that would have been discovered much later in a code review-only workflow.</p>
<p>As this pattern scaled, we used it to produce roughly twenty ESLint rules that enforce the SDK&#x27;s authoring constraints - sandbox boundaries, import restrictions, type safety requirements. The spec-review-implement cycle actually caught design issues earlier than a conventional &quot;just write it&quot; approach would have, because the spec review forced us to articulate what &quot;correct&quot; meant before anyone touched implementation.</p>
<h2>Persistent guidance, not one-off prompts</h2>
<p>Complex platform work can&#x27;t rely on one-off prompting. Agents need context that persists: product principles, implementation constraints, architectural invariants, pitfalls specific to your system.</p>
<p>We invested in repository-local documentation written for AI consumption - architectural principles, boundary definitions, known anti-patterns. When agents made changes, the output was more likely to be globally consistent with platform intent, not just locally correct in isolation.</p>
<p>If the architecture says build-time validation is authoritative, the agent shouldn&#x27;t defer a check until deploy. If the product model says expressions are deterministic, the implementation must reject loopholes that let side-effecting code into the evaluator path. Making those invariants available at the point of work raised the floor of what arrived for human review.</p>
<p>This also solved a collaboration problem. When multiple teams contribute to a shared codebase, onboarding cost is usually high. Persistent AI guidance reduced it. Engineers from adjacent teams could make architecturally consistent changes without weeks of context-building. The documentation that helped agents helped humans too.</p>
<h2>Compressing the feedback loop</h2>
<p>Near the end of the project, AI shifted to high-throughput refinement. As feedback came in from demos, design reviews, and hands-on use, we could turn around changes same-day that would normally take two to three days each. AI helped explore edge cases, reproduce subtle bugs, update documentation, adjust examples, generate targeted tests, and keep multiple artifacts consistent while details were still changing.</p>
<p>The final mile of platform work is where quality is won or lost. The architecture might be sound, but the deliverable only lands if examples are clear, demos are believable, docs match implementation, and rough edges are caught before users find them.</p>
<p>This is usually the phase where quality gets triaged away. Every piece of feedback competes with remaining implementation work, and most of it loses. AI changed that calculus. The marginal cost of responding to feedback dropped enough that we could incorporate most of it before the deadline rather than deferring to the next quarter. The deliverable shipped tighter than it would have otherwise.</p>
<h2>What AI didn&#x27;t do</h2>
<p>AI did not replace architectural judgment. It didn&#x27;t decide which abstractions were load-bearing. It didn&#x27;t know which tradeoffs mattered most for Stripe&#x27;s platform. It didn&#x27;t automatically understand that two things similar in code represent fundamentally different product concepts.</p>
<p>In several places, raw output needed correction. AI could blur boundaries that needed to stay sharp. It could generate implementations that looked locally reasonable while quietly violating a deeper invariant. It could make plausible architectural claims that were subtly wrong. The more AI amplified output volume, the more important review discipline became — which is why the spec-first delegation model mattered so much.</p>
<p>The lesson is not that AI can independently drive complex platform work. It&#x27;s that AI dramatically increases the surface area over which a strong team can apply judgment. The judgment still has to be there. AI makes it go further.</p>
<h2>What this means for how we work</h2>
<p>AI changes the economics of making ideas concrete.</p>
<p>Before, a working prototype, a detailed architecture brief, a full set of implementation specs, agent-readable guidance, and a tight test-and-refine loop would each have competed for scarce engineering time. Because they were expensive, you&#x27;d choose fewer of them - which meant more abstract discussion, later feedback, and less confidence early on.</p>
<p>With AI, the cost dropped enough that we could use more of them, earlier, across more surfaces. Instead of asking stakeholders to trust a document, we showed a prototype. Instead of asking engineers to infer intent, we wrote detailed specs. Instead of asking agents to guess constraints, we gave them reviewed issues and persistent guidance. Instead of accepting late feedback as too expensive, we folded it in.</p>
<p>That&#x27;s the shift. Not &quot;AI writes code faster&quot; but &quot;AI makes more of the development loop concrete earlier.&quot; When ideas become artifacts sooner, teams make better decisions, catch problems earlier, and build with more confidence.</p>
<p>For platform work - where the hardest part is getting a cross-functional team to agree to a shared conviction about the right abstractions - that&#x27;s exactly the kind of leverage that compounds.</p>
<p>We&#x27;re still early in understanding what this means for how engineering teams should be organized and how projects should be structured. But the direction is clear: the teams that benefit most from AI won&#x27;t be the ones that use it to type faster. They&#x27;ll be the ones that redesign their workflows around the new economics of making ideas real.</p>]]></content:encoded></item><item><title><![CDATA[Building a data plane from scratch: Stripe’s own high-performance distributed proxy]]></title><description><![CDATA[To minimize failed payments for our users, Stripe targets 99.9995% reliability.  As traffic grew beyond 1.6% of global GDP, this put intense strain on the service mesh.  This is the story of the infrastructure team replacing Envoy, a popular solution, with an alternative architecture.]]></description><link>https://stripe.dev/blog/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy</link><guid isPermaLink="true">https://stripe.dev/blog/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy</guid><dc:creator><![CDATA[Jack Loughran]]></dc:creator><pubDate>Wed, 26 Aug 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image3.png"/><link rel="preload" as="image" href="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image1.png"/><link rel="preload" as="image" href="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image4.png"/><link rel="preload" as="image" href="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image2.png"/><p>A failed payment request means a Stripe user did all the work to get a customer to pay, but lost the sale because of us. We never want this to happen. To minimize failed payments for our users, we target 99.9995% reliability. Maintaining that level of reliability while processing <a href="https://stripe.com/newsroom/news/stripe-2025-update">around 1.6% of global GDP</a> is an exceptionally difficult technical challenge, but most of us who join Stripe’s infrastructure teams are here because we love technical challenges.</p>
<p>For almost 10 years, we used Envoy as our proxy for Stripe’s service mesh. It worked well for us for years, but as Stripe’s traffic grew and we increased our reliability targets, we started running into critical issues that made us wonder if we needed our own proxy.</p>
<p>We decided to try building a replacement for Envoy. We wanted better reliability and scalability, but we weren’t sure if we’d be able to match Envoy’s latency or CPU footprint. This was a technical risk: if our solution ended up slower or less efficient than Envoy, it would prevent us from deploying it.</p>
<h2>Why did we build it ourselves?</h2>
<p>Internal services at Stripe use our service mesh to communicate with each other. The data plane of the service mesh is responsible for request routing, load balancing, authorization, encryption, and other similar features.</p>
<p>Stripe’s service mesh handles millions of requests per second between thousands of services. One public API request relies on many internal service requests, so small improvements in data-plane latency or reliability make a huge difference in maintaining 99.9995% public API uptime.</p>
<p>Over time, a few reliability and latency issues we had with Envoy became large problems we could no longer ignore. For example, under consistent traffic, <a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/intro/threading_model">Envoy’s worker-based threading model</a> means that each worker will usually hold a connection to every upstream endpoint it can route traffic to. The default deployment strategy is to run Envoy with one worker per CPU core, which means each server machine ends up with one outbound connection per client core.</p>
<p>Here is an example of what this would look like with two 8-core client machines load balancing sustained traffic between two server machines:</p>
<p><img src="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image3.png" alt=""/></p>
<p>Every worker on both client machines maintains a connection to both server machines, which means each server machine needs to handle 16 connections for just these two clients. This becomes especially problematic if you run an infrastructure service that handles requests from the entire fleet (e.g., a service that processes application tracing data). That infrastructure service is forced to maintain connections for roughly every CPU core fleetwide, which is many hundreds of thousands of connections. Scaling up a machine enough to handle this many connections is expensive, and often the problem went unnoticed until too many open connections overloaded the service and caused an incident.</p>
<p>Over time, our Envoy rollouts also started to get increasingly risky, which forced us to roll out upgrades more slowly. <a href="https://www.hyrumslaw.com/">Hyrum&#x27;s Law</a> is especially applicable at Stripe because our fleet contains many unique services. This means small behavior changes in Envoy updates would occasionally cause problems for us.</p>
<p>For example, in 2024, we ran into an especially scary issue when trying to roll out an Envoy upgrade. This upgrade pulled in a new version of nghttp2, which <a href="https://nghttp2.org/blog/2023/10/10/nghttp2-v1-57-0/">introduced a rapid-reset HTTP/2 DDoS defense</a> to protect against a vulnerability. Unfortunately, when using the default settings, this mitigation accidentally rejected some legitimate traffic to one of our services. Luckily, we caught this in a QA load test and fixed the configuration before rolling out to production, but this was a close call. If our load test didn’t replicate the specific traffic pattern the service receives in production, we might not have noticed this regression until it started rejecting real requests. A single production incident like this could jeopardize our 99.9995% reliability goal for the whole year.</p>
<p>Running Envoy also limited our ability to provide custom features for Stripe. For example, Stripe’s Ruby services require big, expensive machines to run. We had designed a new routing approach we could use to distribute traffic more efficiently across backend machines to reduce our Ruby machine sizes and make our Ruby backends more reliable. But this would have required too much customization of Envoy, so we never pursued it.</p>
<h2>What we built</h2>
<p>Mesh-proxy is our Go proxy and Envoy replacement. To efficiently implement all the features of a proxy, mesh-proxy has its own implementation of HTTP/1.1 and HTTP/2. Mesh-proxy connects to our service registry directly for service discovery and supports retries, hedging, rate limiting, and dynamic priority-based request routing.</p>
<p>Go has a few features that helped make mesh-proxy successful. Goroutines are cheap to spin up, which allows us to spin up new ones for every connection. <a href="https://pkg.go.dev/golang.org/x/net/http2">Go’s official HTTP/2 framing library</a> was very useful, and Go is well-supported at Stripe, so we benefit from great developer tooling.</p>
<p>Our biggest risk in building mesh-proxy was that we weren’t sure if we’d be able to match Envoy’s latency or CPU footprint, but our early load tests looked good compared to our Envoy deployment. After rolling out mesh-proxy, we saw around half the CPU under high load, and roughly a 50% latency reduction compared to our Envoy deployment. At our scale, this saves around 3,000 days of cumulative inter-service latency each day.</p>
<p>To address the connection cardinality problem, we built mesh-proxy with a different concurrency model. Instead of a worker-based model with one worker per core, mesh-proxy uses one read goroutine and one write goroutine per connection. Because mesh-proxy multiplexes requests across a shared connection rather than partitioning requests across many workers, we only need one connection per host, compared to one connection per worker with Envoy.</p>
<p>Here is what the 8-core client machines from above look like after migrating to mesh-proxy:</p>
<p><img src="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image1.png" alt=""/></p>
<p>Each client machine only needs one connection to each server machine, which means the server machines only need to maintain two connections for these two clients. This connection reduction means fleetwide services don’t need to maintain nearly as many connections, which allows them to run reliably on smaller machines. The downside is that this approach required more work to coordinate shared request state across goroutines, but we felt this tradeoff was worth it.</p>
<p>We also found that connecting to our service registry directly from mesh-proxy was more efficient than xDS in many cases. Our Envoy deployment tended to cause more xDS updates than were necessary, which used extra CPU and memory on every machine. Here are a couple of graphs of the most significant example of a service that previously received an enormous number of xDS updates. You can tell when mesh-proxy was rolled out by the massive drop in CPU and memory.</p>
<p><img src="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image4.png" alt=""/></p>
<p><img src="https://stripe.dev/images/building-a-data-plane-from-scratch-stripes-own-high-performance-distributed-proxy/image2.png" alt=""/></p>
<p>In addition to the performance improvements, rolling out mesh-proxy enabled us to make improvements that were not previously feasible for us with Envoy. We rolled out a feature that uses custom Ruby infrastructure code to balance traffic more evenly between Ruby backend replicas, which gives us 15–20% more headroom before traffic bursts overwhelm the machines. We were also able to roll out an overhaul of our priority-based routing system that has enabled improvements to our deployment infrastructure, rate limiting system, and traffic shifting logic. These features and others on our roadmap were far too custom for us to realistically build into our old Envoy deployment.</p>
<h2>What’s next</h2>
<p>It’s a little counterintuitive that building something in-house would be more reliable than operating a battle-tested open-source project. But our internal service mesh has become complex and custom enough that we’ve had great success building our own proxy. All mesh-proxy code is reviewed by our team and rigorously tested with unit tests, end-to-end tests, and synthetic tests before deployment.</p>
<p>Because our team operates components that handle communication between almost every service at Stripe, we have a unique advantage for identifying inefficiencies and finding solutions. We’re currently working on capabilities like anomaly detection and smart routing so we can find and fix issues before users feel any impact.</p>
<p>If you’re interested in improving infrastructure at Stripe, <a href="https://stripe.com/jobs">we’re hiring</a>.</p>]]></content:encoded></item><item><title><![CDATA[Reading the signals: Helping your AI-built payment integration understand business intent]]></title><description><![CDATA[The low-level code that makes a payment go through is getting cheap, fast. What is becoming valuable is the judgment above it: knowing what the money is supposed to do and making sure the code obeys it.]]></description><link>https://stripe.dev/blog/helping-ai-built-payment-integration-understand-business-intent</link><guid isPermaLink="true">https://stripe.dev/blog/helping-ai-built-payment-integration-understand-business-intent</guid><dc:creator><![CDATA[David Benchi]]></dc:creator><pubDate>Fri, 14 Aug 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<p>Watching an agent build a payment integration is impressive. It is fast, and building has become almost easy. A few prompts, and the <code>PaymentIntent</code> is created, the Payment Element renders, the flow runs end to end. The demo passes.</p>
<p>That speed is what developers tell me constantly now: building on Stripe has never been this quick. And they are right. The next step is helping the integration understand what the money is supposed to do, not just how to move it.</p>
<p>I am the Technical Advisor to the Head of Professional Services EMEA, and reviewing integrations for large users is most of my job, so I see where the gaps are. Someone builds an integration, it looks correct, and most of it is. Then they come to us saying it’s not working as expected, even though on paper it should be. The code ran, but the result did not match the business intent behind it.</p>
<p>When the business intent is missing, nothing throws and nothing is logged. The integration simply starts sending signals, money rests in states it should not rest in, and a week later a support ticket lands: &quot;I was charged and got nothing.&quot; The code was correct. The business intent behind it had not been made explicit yet. The good news is that these signals are readable, and once you can read them, you can get ahead of them.</p>
<h2>Why payments are different</h2>
<p>Payments are different from most software a team builds. The developers usually have strong development skills, but not always payment skills. They work from the API reference and build against it the same way they would build anything else.</p>
<p>Two things are usually missing at once: the payment knowledge, and the business intent behind the money. Put those gaps together and you get code with correct syntax that passes tests, but then behaves in ways nobody decided on in production. It does not crash. It moves money along paths the business never chose. The model was never the constraint. Knowing what the money is supposed to do is the part worthy of your attention, and the part you can add.</p>
<p>That knowledge rarely announces itself as an error. Instead the integration emits signals, small clues in the data that something is off. Each looks minor and unrelated on its own. Read together, against what the money was supposed to do, they point at a single source, the part a developer cannot see without payment knowledge. That is where a review begins, and it is exactly what you can teach the integration to check for itself.</p>
<p>This post walks you through how to read those signals, encode the business intent, and validate every build against it, whether the build came from a person or an agent.</p>
<h2>The PaymentIntent and the business intent</h2>
<p>When I start an integration review, I ask for the first fifteen minutes with no code, just the business: what should happen to the money, and what must never happen to it. If I read the code first, I get biased and start reasoning from code to code. I would rather build the end-to-end business version in my head, find the payment pattern that fits it, and only then look at how it becomes a <code>PaymentIntent</code>.</p>
<p>That order matters, so enforce  it within your team: define the business intent before the payment intent. The two share a word for a reason. The <code>PaymentIntent</code> is the Stripe object that tracks the payment through its lifecycle. The business intent is the set of decisions behind it, the rules the money has to obey. An agent is very good at producing the first. It cannot know the second unless someone tells it.</p>
<p>Here is what that gap looks like in code. A <code>return_url</code> is required for any redirect-based payment method, so on its own it tells you nothing. The signal is a flow that redirects every customer away, even card payments that never needed a redirect:</p>
<pre><code class="language-javascript">// Client. redirect: &quot;always&quot; bounces every customer to the return page,
// even card payments that never needed a redirect.
// redirect: &quot;if_required&quot; would keep those on the page. Why always? And what runs there?
const { error } = await stripe.confirmPayment({
  elements,
  confirmParams: {
    return_url: &quot;https://example.com/order/complete&quot;,
  },
  redirect: &quot;always&quot;,
});
</code></pre>
<p>The syntax is correct. But the object cannot tell you why every payment leaves the page. Is fulfillment meant to happen on that return page? Was redirecting everyone a deliberate business decision, or just the default nobody questioned? The business intent behind it is nowhere in the code, and neither the object nor the model can enforce a rule it was never given.</p>
<h2>Signals that the business intent is missing</h2>
<p>You have probably seen at least one of these. On their own they look like small, unrelated bugs in different parts of the stack. Put them next to the business intent and they turn out to be the same failure wearing five faces.</p>
<p><strong>An authorization rate of 43% that was really above 90%.</strong> A retry loop was resubmitting hard declines, <code>authentication_required</code>, <code>incorrect_number</code>, or <code>expired_card</code>, none of which passes on a second attempt. It looks like a processor problem. The cause is retry logic that treats every decline the same instead of branching on the <code>decline_code</code>.</p>
<p><strong><code>PaymentIntents</code> resting in <code>requires_action</code>.</strong> A server-side confirm with no client-side <code>handleNextAction</code>, so the 3DS step is never triggered and the intent waits for an authentication nobody sent. Money that could have been collected is instead stuck, and nothing errors.</p>
<p><strong>A <code>requires_capture</code> with money held and no order behind it.</strong> The order is created by a client call that runs after the authorization lands. Kill the tab in that window and the money is held with nothing behind it. The customer was charged and got nothing, and the exception tracker is empty.</p>
<p><strong>Connected accounts that quietly went <code>restricted</code>.</strong> No subscription to <code>account.updated</code>, so an account hits <code>requirements.currently_due</code>, flips to <code>restricted</code>, and keeps taking payments into <code>testmode_charges_only</code>. Live volume is lost while the code that moves money keeps working.</p>
<p><strong>Async payment methods refunded like cards.</strong> The integration fulfills off the return URL, ignores <code>payment_intent.processing</code>, and never handles the <code>succeeded</code> that lands a day or two later. Revenue you already earned, refunded.</p>
<p>Independent signals like these tend to arrive late, after the money has already moved. Five subsystems, five different bugs. None threw an error. None is a syntax problem. Each one is a decision about how the money should behave that nobody actually made. On their own they look unrelated, but read against the business intent they share one source: the payment knowledge that was never written into the code. Once you can read them, you can encode them.</p>
<h2>Encoding the business intent</h2>
<p>This part is harder, because the right answer depends on the team, and there is no single best practice. Think about how you already treat code style: a formatter and a linter keep the syntax consistent so anyone can read it. Business intent needs the same discipline, and most teams do not have it yet. Whether you use a well-named function, a comment that states the rule, a pull request linked to a documented requirement, metadata on the object, or a Stripe custom object does not matter. The point is that the decision is written down where the next person, or the next agent, cannot miss it.</p>
<p>Here is the test I use. I ask a developer why a parameter is set the way it is, and I want more than the technical meaning. I want the business needs behind it. Why does every payment redirect? Why do we retry, and which declines? What happens when a connected account becomes restricted? If the answer is &quot;that is just how it was generated,&quot; the intent was never encoded.</p>
<p>Metadata is a good habit here, because it makes the intent legible from the outside. Open a <code>PaymentIntent</code> in the Dashboard, and if the metadata says which order and decision it belongs to, you understand the business behind it without reading the code:</p>
<pre><code class="language-javascript">// Server. Put the business context on the object itself.
const order = await orders.createPending(); // your order id, status &quot;pending&quot;

const paymentIntent = await stripe.paymentIntents.create({
  amount,
  currency,
  // Business decision: authorize now, capture only once the order is confirmed.
  // Never hold funds we cannot fulfill.
  capture_method: &quot;manual&quot;,
  // Business decision: every authorization must trace back to an order.
  metadata: { order_id: order.id },
});
</code></pre>
<h2>Validating every build against the intent</h2>
<p>We have an agent to build the code. We need an agent to validate it.</p>
<p>The best teams I work with have stopped treating the build agent as the whole story. They run a small system of agents. An orchestrator coordinates the work for the development team. A builder agent writes the code. And a verifier agent runs after the build, with one job: check that what was built actually does what the money is supposed to do.</p>
<p>The verifier is where it comes together. To build one, someone has to encode the business knowledge into it. You cannot check that a terminal decline is never retried, or that no order exists without an authorization behind it, unless someone states those rules. So the verifier forces the business intent to be written down. In most reviews the business owner never stated it up front, which is exactly why nothing encoded it. Building a verifier forces the conversation that should have happened at the start.</p>
<p>The important part is that those rules are code, not a checklist. Here are three of the five signals from earlier, each written down as something a verifier can run on every build. The other two follow the same shape:</p>
<pre><code class="language-javascript">// Verifier rules, each one a signal that cost a live integration money.
const paymentRules = [
  {
    rule: &quot;Never retry a terminal decline&quot;,
    check: (retry) =&gt;
      ![&quot;authentication_required&quot;, &quot;incorrect_number&quot;, &quot;expired_card&quot;]
        .includes(retry.declineCode),
  },
  {
    rule: &quot;A held authorization must have an order behind it&quot;,
    check: (pi) =&gt;
      pi.capture_method !== &quot;manual&quot; || Boolean(pi.metadata?.order_id),
  },
  {
    rule: &quot;Async payment methods handle their asynchronous result&quot;,
    check: (integration) =&gt;
      integration.subscribesTo(&quot;payment_intent.processing&quot;) &amp;&amp;
      integration.subscribesTo(&quot;payment_intent.succeeded&quot;),
  },
];
</code></pre>
<p>How these rules run is up to the team, and both common paths work. You can encode them in a skill the verifier agent loads before it reviews a build, so the check happens conversationally as part of the agent workflow. Or you can wire the same rules into automated testing, a CI step that inspects the integration and fails the build when a rule is violated, the same way a linter fails on a style break. The teams getting the most value do both: the skill catches intent gaps while the code is being written, and the test suite enforces the same rules on every merge so nothing regresses later. What matters is not the mechanism but that the rules run on every build automatically, not when someone remembers to look.</p>
<p>None of these came from a specification. Each one came from an integration that looked correct and lost money until someone read the signal and wrote the rule down. That is the point: the rules live where the code can be checked against them, and writing them forces the conversation with the business owner that should have happened first.</p>
<p>And that is the shift: judgment stops being personal and becomes shared. A business team encodes what correct means into the verifier, and every build, whoever or whatever wrote it, is checked against the same rules. None of this removes the human. Encoding the knowledge into an agent does not hand over the decision, it makes it explicit and repeatable. The person still owns what correct means; the agents only enforce it.</p>
<h2>Conclusion</h2>
<p>The value is moving. The low-level code that makes a payment go through is getting cheap, fast. What is becoming valuable is the judgment above it: knowing what the money is supposed to do and making sure the code obeys it.</p>
<p>So read the signals your integration is already sending. State the business intent out loud, encode it where the code can be checked against it, and keep a human owning what correct means. Implementing the <code>PaymentIntent</code> is getting cheap. Being right about the business intent behind it is now the whole job.</p>]]></content:encoded></item><item><title><![CDATA[From charging a blended rate to IC++: pass network costs to your connected accounts]]></title><description><![CDATA[SaaS platforms don't fit a single mold when it comes to payments pricing. An early-stage vertical software company needs simple, flexible tools to experiment and iterate. A platform moving upmarket needs granular cost control and the ability to offer sophisticated pricing to enterprise customers. And as AI features reshape how platforms monetize, that diversity is only going to increase.]]></description><link>https://stripe.dev/blog/pass-network-costs-to-your-connected-accounts</link><guid isPermaLink="true">https://stripe.dev/blog/pass-network-costs-to-your-connected-accounts</guid><dc:creator><![CDATA[Safia El Bayed]]></dc:creator><pubDate>Mon, 10 Aug 2026 00:00:00 GMT</pubDate><content:encoded><![CDATA[<link rel="preload" as="image" href="https://stripe.dev/images/pass-network-costs-to-your-connected-accounts/image1.png"/><p>SaaS platforms don&#x27;t fit a single mold when it comes to payments pricing. An early-stage vertical software company needs simple, flexible tools to experiment and iterate. A platform moving upmarket needs granular cost control and the ability to offer sophisticated pricing to enterprise customers. And as AI features reshape how platforms monetize, that diversity is only going to increase.</p>
<p>Connect has made significant strides on both ends of that spectrum. For platforms that want flexibility without complexity, segmented pricing lets you set and manage rates directly from the Dashboard with the ability to differentiate by payment method, geography, and other attributes. For platforms moving upmarket, Interchange Plus Plus (IC++) takes things further: it gives you the ability to offer cost-plus pricing to your users, passing network costs transparently while protecting your margins, without the operational burden of managing rate tables, navigating messy reconciliation, or tracking constant interchange updates from the networks.</p>
<p>That last capability is proving to be a meaningful unlock. In the article below, we dig into how network cost passthrough actually works: what it means for your pricing model, how to set it up and how it shows up in your users&#x27; fee reporting.</p>
<h2>Why blended pricing hurts platform margins</h2>
<p>On a blended rate, the platform absorbs all interchange variance. When your card mix is predictable, this isn’t a problem. But premium rewards cards, corporate purchasing cards, and high-interchange consumer cards can cost materially more in network fees than your blended rate assumes. The difference comes straight out of your spread, and as platforms scale and attract larger, more sophisticated merchants, that card mix tends to shift in the higher cost direction.</p>
<p>Network cost passthrough solves this by moving the platform to IC++: interchange and card scheme fees flow directly to connected accounts at cost, and the platform earns a clean, protected margin on top. Regardless of card mix, the economics become predictable. The operational headache of tracking interchange schedules, managing rate table updates, or reconciling cost variances disappears. And for connected accounts, the model is actually more transparent: they receive reporting on the network costs attributed to their payment, not a blended approximation of it.</p>
<p>That combination: margin protection for the platform and cost transparency for users, is why IC++ is increasingly the default choice for platforms moving upmarket.</p>
<h2>Setting the stage: IC+ vs IC++</h2>
<p>IC+ and IC++ are related but distinct offerings for Connect platforms:</p>
<ul>
<li>IC+ (Interchange Plus): A pricing model where the platform is charged the underlying network costs (interchange + scheme fees) plus a Stripe markup, instead of a single blended rate.</li>
<li>IC++ (also referred to as network cost passthrough for platforms): A Connect capability built on top of IC+ that lets a platform pass its network costs through to its connected accounts. In this case, the platform can offer IC+pricing to its own connected accounts rather than charging them a blended rate.</li>
</ul>
<h2>How network cost passthrough (IC++) works</h2>
<h3>Eligibility requirements</h3>
<p>For your platform to be eligible for network cost passthrough, the following must be true:</p>
<ul>
<li>Your platform must be on IC+ pricing</li>
<li>Your platform must control pricing (IC++ is only relevant if the platform is on a buy-rate, not on revenue share)</li>
<li>The connected account must have the transfers capability enabled</li>
<li>The connected account should be the Merchant of Record of the transaction: in practice, this means you’re either using Direct Charges or Destination Charges with the <code>on_behalf_of</code> parameter fund flows</li>
<li>The platform and connected account pair must be in eligible geographies (you can work with your account team to ensure geographical availability)</li>
</ul>
<h3>Enable network cost passthrough for your connected accounts</h3>
<p>You can enable Network Cost Passthrough for a connected account either on the Dashboard or through the Stripe API.</p>
<p>In the Dashboard, navigate to the connected account&#x27;s detail page. In the monetization section, toggle on &quot;Pass through network costs&quot; in the Network costs tab.</p>
<p>Through the API, create a Pricing Config Scheme of type <code>network_costs</code> for the connected account using the Stripe-Account header:</p>
<pre><code class="language-bash">curl POST https://api.stripe.com/v1/pricing_configs/network_costs/schemes \
  -u &quot;sk_live_xxxx:&quot; \
  -H &quot;Stripe-Version: 2026-06-24.preview&quot; \
  -H &quot;Stripe-Account: CONNECTED_ACCOUNT_ID&quot; \
  -d enabled=true
</code></pre>
<p>To check the current status for a connected account:</p>
<pre><code class="language-bash">curl https://api.stripe.com/v1/pricing_configs/network_costs/schemes/current_at \
  -u &quot;sk_live_xxxx:&quot; \
  -H &quot;Stripe-Version: 2026-06-24.preview&quot; \
  -H &quot;Stripe-Account: CONNECTED_ACCOUNT_ID&quot;
</code></pre>
<p>Once enabled, IC++ passes eligible card-network costs, including interchange, scheme fees, and applicable adjustments, through to the connected account at cost. It does not pass through separate Stripe product fees.</p>
<p>In practice, Stripe first charges network costs to your platform account on your IC+ billing schedule (typically within two days of the payment occuring). Within a few hours, we recover these costs from the connected account’s balance and add them to the platform’s balance via a Balance Transaction of type <code>platform_fee_transfer</code>. Note that if the connected account has paid out its funds, issued refunds, or otherwise reduced its balance before the recovery occurs, the network cost recovery can take the account negative. In this case, payouts are paused until the connected account’s balance goes positive again.</p>
<h3>Adjust the pricing for your connected accounts</h3>
<p>To accommodate this change, your platform’s existing blended application fee, which was priced to absorb network costs, needs to come down.</p>
<p>If you use Stripe&#x27;s <a href="https://docs.corp.stripe.com/connect/platform-pricing-tools">Platform Pricing Tool</a> (no-code pricing management), the recommended approach is to create a dedicated pricing group for IC++ accounts rather than modifying your existing rules. Add a condition of &quot;Network cost passthrough = Enabled&quot; to scope the rule correctly, then set a lower volume fee that reflects your Stripe fees and your markup, without the network costs.</p>
<p>Alternatively, if you manage pricing programmatically, you can update your own internal pricing engine to accommodate for this change.</p>
<p><img src="https://stripe.dev/images/pass-network-costs-to-your-connected-accounts/image1.png" alt="Blended and passthrough pricing diagrams"/></p>
<h2>Reporting and reconciliation for your merchants</h2>
<p>As you change your pricing strategy for your connected accounts, you must accompany this change by providing them with new reporting capabilities. You can help your connected accounts understand their network costs by sharing the following reports with them:</p>
<ul>
<li>IC+ plan-level report: This report shows data aggregated at the calendar month level. This helps connected accounts understand the monthly network costs computed across all their charges. It provides interchange plan names and an aggregated scheme fee total</li>
<li>IC+ transaction-level report: This report helps connected accounts understand transaction costs at an individual-transaction level. It provides information about which charges led to higher network costs and how refunds and disputes impact network costs. This report shows data aggregated by calendar month.</li>
</ul>
<p>Both reports provide complementary information. You can access the reports for a connected account in several ways:</p>
<ul>
<li>Stripe Dashboard (for connected accounts with Dashboard access): this route requires no technical lift at all from you as a platform.</li>
<li>Network cost passthrough embedded component: you can use Connect embedded components to add connected account dashboard functionality to your website. These libraries allow you to grant your users access to Stripe products directly in your dashboard. This route requires very little technical lift from you as a platform.</li>
<li><a href="https://docs.stripe.com/api/reporting/report_run">Reporting API</a>: our Reporting API lets you programmatically access the same financial data that&#x27;s in your Dashboard’s financial reports. This route requires some technical lift from you as a platform.</li>
<li>Sigma or Stripe Data Pipeline (for platforms with access to these two products):  to run custom analyses and integrate network cost data into your existing workflows, you can access this report data in Sigma and Stripe Data Pipeline. Similarly, this route requires some technical lift from you as a platform.</li>
</ul>
<p>Regardless of how you access the report, the network cost schema is the same and is described <a href="https://docs.stripe.com/connect/network-cost-passthrough-platforms?core-dashboard-or-api=dashboard#network-cost-report-schema">here in our documentation</a>.</p>
<h2>How to deploy this new pricing strategy</h2>
<h3>Start with a pilot cohort</h3>
<p>Enabling IC++ is a pricing change with real financial implications for your connected accounts. We recommend starting with a pilot cohort of a few connected accounts that are good candidates:</p>
<ul>
<li>High-volume, payment-aware accounts: merchants who already think carefully about their processing costs and will understand the change quickly</li>
<li>Commercially engaged: accounts you have a close relationship with and can get feedback from</li>
</ul>
<h3>Communicate before you enable</h3>
<p>Connected accounts need context before they see new line items on their statements. Before enabling this change for a cohort, send a short explanation covering: what is changing, why (transparency and cost accuracy), what their new fee structure will look like, and where the connected accounts can find the IC++ reports.</p>
<h3>Embed IC++ into your go-to-market motion</h3>
<p>Once the pilot validates your rollout approach, IC++ becomes a commercial differentiator in addition to being an operational change. For prospecting, IC++ is a key value proposition with enterprise and payment-aware buyers who have outgrown blended pricing elsewhere. Position IC++ as a premium tier with greater transparency for sophisticated operators.</p>
<h2>Get started</h2>
<p>Network cost passthrough is available for eligible Connect platforms today. If you&#x27;re ready to move your connected accounts to IC++, the <a href="https://docs.stripe.com/connect/network-cost-passthrough-platforms">full documentation</a> covers everything from enabling passthrough per account to reading the network cost reports.</p>
<p>If you&#x27;re not yet enabled for IC++ at the platform level, or you want to talk through whether this pricing model is the right fit for your business, reach out to your Stripe account team. They can confirm your eligibility and help you build a rollout plan.</p>]]></content:encoded></item><item><title><![CDATA[Agentic payments for marketplaces: How a smart fridge can shop safely]]></title><description><![CDATA[While a smart fridge can detect when a household is running out of milk, the more interesting engineering problem begins after that.]]></description><link>https://stripe.dev/blog/agentic-payments-for-marketplaces</link><guid isPermaLink="true">https://stripe.dev/blog/agentic-payments-for-marketplaces</guid><dc:creator><![CDATA[Ana Andres]]></dc:creator><pubDate>Fri, 07 Aug 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Meet Stripe's Knowledge AI Platform]]></title><description><![CDATA[Stripe's Knowledge AI Platform is our versatile AI agent platform built to handle diverse non-coding knowledge work, from quick queries to complex, multi-day projects. By connecting employees to over 1,000 internal tools and skills, it enables secure, enterprise-scale productivity across the organization.]]></description><link>https://stripe.dev/blog/meet-stripes-knowledge-ai-platform</link><guid isPermaLink="true">https://stripe.dev/blog/meet-stripes-knowledge-ai-platform</guid><dc:creator><![CDATA[Anna Mason]]></dc:creator><pubDate>Thu, 30 Jul 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[How Stripe uses graph search and state machines to auto-remediate a global database fleet]]></title><description><![CDATA[Discover how we modeled our MongoDB infrastructure as a traversable graph and then use pathfinding algorithms to dynamically compute and execute recovery plans. This automated approach reduced pager volume by 30% (~200 pages/year), eliminated 12 days of unhealthy shard states annually, and supports new shard layouts with zero manual effort.]]></description><link>https://stripe.dev/blog/how-stripe-uses-graph-search-and-state-machines-to-auto-remediate-a-global-database-fleet</link><guid isPermaLink="true">https://stripe.dev/blog/how-stripe-uses-graph-search-and-state-machines-to-auto-remediate-a-global-database-fleet</guid><dc:creator><![CDATA[Pragya Mehta]]></dc:creator><pubDate>Thu, 16 Jul 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Keeping funds where they belong: Implementing fund segregation in Stripe Connect]]></title><description><![CDATA[Learn how to implement fund segregation in Stripe Connect using allocated balances to ring-fence seller funds from your platform's operational balance - covering payment creation, transfers, refunds, disputes, and preparing for upcoming PSD3 regulatory requirements.]]></description><link>https://stripe.dev/blog/fund-segregation-stripe-connect</link><guid isPermaLink="true">https://stripe.dev/blog/fund-segregation-stripe-connect</guid><dc:creator><![CDATA[Andrew Robinson]]></dc:creator><pubDate>Thu, 02 Jul 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Introducing a better way to process Stripe's thin events]]></title><description><![CDATA[Event destinations are central to Stripe integrations but hard to get right. Event notification handlers encapsulate the setup and wiring, letting you focus on business logic and surface errors at development time instead of in production.]]></description><link>https://stripe.dev/blog/event-notification-handlers-thin-events</link><guid isPermaLink="true">https://stripe.dev/blog/event-notification-handlers-thin-events</guid><dc:creator><![CDATA[David Brownman]]></dc:creator><pubDate>Wed, 24 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Extending Stripe’s network with stablecoins]]></title><description><![CDATA[Most of the world's money still moves in batches. A wire submitted at 2pm might settle by end of day, if you made the cutoff. ACH takes one to three business days. Cross-border payments touch correspondent banks, each adding lag and a fee. Stripe has spent over a decade building the Global Payments and Treasury Network (GPTN), a programmable infrastructure for global money movement that batches transfers to reduce cost, nets opposing flows to minimize actual cash moved, and routes through the optimal path between accounts. Under the hood, it's a graph with accounts as nodes, and payment rails as edges.]]></description><link>https://stripe.dev/blog/extending-stripes-network-with-stablecoins</link><guid isPermaLink="true">https://stripe.dev/blog/extending-stripes-network-with-stablecoins</guid><dc:creator><![CDATA[Sai Samant]]></dc:creator><pubDate>Mon, 22 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[From hobby to real world: integrating the hard stuff with agents]]></title><description><![CDATA[When building with agents, most guides will give you the happy path - how to do something the best way, without friction. This post is all friction, and how to get through it when things go wrong.]]></description><link>https://stripe.dev/blog/integrating-services-with-agents-stripe-projects</link><guid isPermaLink="true">https://stripe.dev/blog/integrating-services-with-agents-stripe-projects</guid><dc:creator><![CDATA[Anna Spysz]]></dc:creator><pubDate>Tue, 16 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[How API changes flow into Stripe's developer products]]></title><description><![CDATA[When a Stripe engineer makes changes to an API, merging the PR is just the beginning. Stripe maintains a vast developer product suite that needs to stay in sync with the API changes we frequently ship:]]></description><link>https://stripe.dev/blog/how-api-changes-flow-into-stripes-developer-products</link><guid isPermaLink="true">https://stripe.dev/blog/how-api-changes-flow-into-stripes-developer-products</guid><dc:creator><![CDATA[Mikael Mello]]></dc:creator><pubDate>Mon, 15 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Scaling up your microservice testing with Apache Spark—Part 2]]></title><description><![CDATA[Some microservices are difficult to test because their behavior depends on a long tail of inputs that are hard to model by hand. This post focuses on how to build a repeatable Apache Spark replay harness for testing without creating a second implementation of the service.]]></description><link>https://stripe.dev/blog/microservice-testing-with-apache-spark-part-2</link><guid isPermaLink="true">https://stripe.dev/blog/microservice-testing-with-apache-spark-part-2</guid><dc:creator><![CDATA[Vivek Yadav]]></dc:creator><pubDate>Mon, 08 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Scaling up your microservice testing with Apache Spark]]></title><description><![CDATA[Some microservices are difficult to test because their behavior depends on a long tail of inputs that are hard to model by hand. For that class of problem, Apache Spark's massive parallelism and linear scalability can be leveraged to build a regression test harness. That makes it possible to compare old and new implementations, model upcoming rule changes, and quantify impact before a change reaches production.]]></description><link>https://stripe.dev/blog/microservice-testing-with-apache-spark</link><guid isPermaLink="true">https://stripe.dev/blog/microservice-testing-with-apache-spark</guid><dc:creator><![CDATA[Vivek Yadav]]></dc:creator><pubDate>Mon, 01 Jun 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Compliance versus conversion: Tax ID validation at checkout]]></title><description><![CDATA[For product-led businesses, conversion is paramount, so an important consideration is deciding whether to implement synchronous or asynchronous tax ID validation in a checkout flow. One is friendlier for conversion, but the other can keep your business compliant.]]></description><link>https://stripe.dev/blog/tax-id-validation-at-checkout</link><guid isPermaLink="true">https://stripe.dev/blog/tax-id-validation-at-checkout</guid><dc:creator><![CDATA[Jake Estes]]></dc:creator><pubDate>Fri, 29 May 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Modern Java at Stripe: Language upgrades as a service]]></title><description><![CDATA[We all know the stereotypes of working at enterprise tech companies: endless bureaucracy and behemoth codebases running on a years-old language version. Most organizations know they should modernize quickly, but haven’t figured out how to build an upgrade path compatible with a large codebase. The recurring cost of upgrading keeps most large JVM codebases trailing behind the latest Java versions.]]></description><link>https://stripe.dev/blog/modern-java-at-stripe-language-upgrades-as-a-service</link><guid isPermaLink="true">https://stripe.dev/blog/modern-java-at-stripe-language-upgrades-as-a-service</guid><dc:creator><![CDATA[Mahib Hosain]]></dc:creator><pubDate>Wed, 27 May 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[What it feels like building with Stripe Projects]]></title><description><![CDATA[Building a GitHub traffic dashboard with Stripe Projects revealed a surprising shift from “AI coding” into real infrastructure orchestration. In under an hour, Auth0, Supabase, Vercel, Prisma, deployments, environments, and scheduled jobs materialized around an idea with remarkable speed. The experience highlighted both the power and the emerging challenge of AI-assisted infrastructure: operational visibility, ownership clarity, environment management, and understanding rapidly orchestrated systems.]]></description><link>https://stripe.dev/blog/what-it-feels-like-building-with-stripe-projects</link><guid isPermaLink="true">https://stripe.dev/blog/what-it-feels-like-building-with-stripe-projects</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Tue, 26 May 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[You can't whisper at an AI agent]]></title><description><![CDATA[What a dozen steering experiments taught us about how LLM-based agents actually behave in the wild.]]></description><link>https://stripe.dev/blog/ai-steering-experiments</link><guid isPermaLink="true">https://stripe.dev/blog/ai-steering-experiments</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Thu, 14 May 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Learnings from init to deploy]]></title><description><![CDATA[This post is a follow-up to last week’s “From init to deploy: building with agents and Stripe Projects” and explores the learnings gained along the way.]]></description><link>https://stripe.dev/blog/learnings-from-building-with-agents-stripe-projects</link><guid isPermaLink="true">https://stripe.dev/blog/learnings-from-building-with-agents-stripe-projects</guid><dc:creator><![CDATA[Anna Spysz]]></dc:creator><pubDate>Mon, 04 May 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[From init to deploy: building with agents and Stripe Projects]]></title><description><![CDATA[Stripe Projects makes it easy to spin up a useful, complex application that uses various SaaS providers. This post describes how one of our developer advocates built an internal transcript editing application using Stripe Projects, Vercel, and OpenRouter.]]></description><link>https://stripe.dev/blog/building-with-agents-stripe-projects</link><guid isPermaLink="true">https://stripe.dev/blog/building-with-agents-stripe-projects</guid><dc:creator><![CDATA[Anna Spysz]]></dc:creator><pubDate>Wed, 29 Apr 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Formatting an entire 25 million line codebase overnight: the rubyfmt story]]></title><description><![CDATA[This is the story of how our Developer Productivity team extended and rolled out rubyfmt, our Rust-based zero-config, ultra-fast autoformatter across the world's largest Ruby codebase.]]></description><link>https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story</link><guid isPermaLink="true">https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story</guid><dc:creator><![CDATA[Fable Tales]]></dc:creator><pubDate>Tue, 28 Apr 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[How we built Stripe Credits: A programmable, auditable way to pay your Stripe fees]]></title><description><![CDATA[In this post we’ll dive into how we built a virtual cashless payment method that works for prepaid and Stripe-issued credits, and cleanly integrates with our accounting, compliance, and other frameworks.]]></description><link>https://stripe.dev/blog/how-we-built-stripe-credits-a-programmable-auditable-way-to-pay-your-stripe-fees</link><guid isPermaLink="true">https://stripe.dev/blog/how-we-built-stripe-credits-a-programmable-auditable-way-to-pay-your-stripe-fees</guid><dc:creator><![CDATA[Pratik Gupta]]></dc:creator><pubDate>Thu, 16 Apr 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Using AI agents to build Stripe-Salesforce integrations faster]]></title><description><![CDATA[Building payment and revenue integrations across Stripe and Salesforce has a steep learning curve spanning both platforms. CLI-based AI coding agents make this faster, but hallucinate on complex, evolving platform surfaces. Open-source grounding context files flatten the learning curve and reduce hallucination, letting developers ship working integrations sooner.]]></description><link>https://stripe.dev/blog/build-stripe-salesforce-integrations-faster-with-agents</link><guid isPermaLink="true">https://stripe.dev/blog/build-stripe-salesforce-integrations-faster-with-agents</guid><dc:creator><![CDATA[Vishnu Samavedula]]></dc:creator><pubDate>Mon, 13 Apr 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Selective Test Execution at Stripe: Fast CI for a 50M-line Ruby monorepo]]></title><description><![CDATA[Stripe's Selective Test Execution system employs some clever tricks to allow us to continue scaling our team and our codebase while only running around 5% of our tests on average. Find out how it works!]]></description><link>https://stripe.dev/blog/selective-test-execution-at-stripe-fast-ci-for-a-50m-line-ruby-monorepo</link><guid isPermaLink="true">https://stripe.dev/blog/selective-test-execution-at-stripe-fast-ci-for-a-50m-line-ruby-monorepo</guid><dc:creator><![CDATA[Aditya Anchuri]]></dc:creator><pubDate>Thu, 09 Apr 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Provision a production-ready dev stack from your terminal]]></title><description><![CDATA[Provision hosting, databases, auth, analytics, AI and other dev tools from the Stripe CLI. Stripe Projects creates real resources in your own provider accounts, securely syncs agent-ready credentials, supports upgrades to paid tiers, and handles payments without leaving the terminal.]]></description><link>https://stripe.dev/blog/production-ready-dev-stack-from-terminal</link><guid isPermaLink="true">https://stripe.dev/blog/production-ready-dev-stack-from-terminal</guid><dc:creator><![CDATA[Rami Banna]]></dc:creator><pubDate>Thu, 26 Mar 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Designing flexible payment flows with Checkout Session]]></title><description><![CDATA[Learn how to build a future-proof, global-ready checkout by implementing Stripe Checkout Session with embeddable Elements for flexible payments, tax calculation, and multi-currency support.]]></description><link>https://stripe.dev/blog/designing-flexible-payment-flows-with-checkoutsessions</link><guid isPermaLink="true">https://stripe.dev/blog/designing-flexible-payment-flows-with-checkoutsessions</guid><dc:creator><![CDATA[Allison Farris]]></dc:creator><pubDate>Fri, 06 Mar 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building a mental model for Stripe payments]]></title><description><![CDATA[Learn how Stripe payments work under the hood by understanding the PaymentIntent lifecycle as a state machine—from checkout and tokenization to authorization, capture, and settlement—and why webhooks are essential for keeping your systems in sync with asynchronous payment state changes. ]]></description><link>https://stripe.dev/blog/building-a-mental-model-for-stripe-payments</link><guid isPermaLink="true">https://stripe.dev/blog/building-a-mental-model-for-stripe-payments</guid><dc:creator><![CDATA[Allison Farris]]></dc:creator><pubDate>Thu, 19 Feb 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Minions: Stripe’s one-shot, end-to-end coding agents—Part 2]]></title><description><![CDATA[Minions are Stripe’s homegrown coding agents, responsible for more than a thousand pull requests merged each week. Though humans review the code, minions write it from start to finish. Learn how they work, and how we built them.]]></description><link>https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2</link><guid isPermaLink="true">https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2</guid><dc:creator><![CDATA[Alistair Gray]]></dc:creator><pubDate>Thu, 19 Feb 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Minions: Stripe’s one-shot, end-to-end coding agents]]></title><description><![CDATA[Minions are Stripe’s homegrown coding agents, responsible for more than a thousand pull requests merged each week. Though humans review the code, minions write it from start to finish. Learn how they work, and how we built them.]]></description><link>https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents</link><guid isPermaLink="true">https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents</guid><dc:creator><![CDATA[Alistair Gray]]></dc:creator><pubDate>Mon, 09 Feb 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Configuring Stripe using Terraform and AI agents]]></title><description><![CDATA[Learn why using AI agents to author Terraform code is safer than direct API calls for Stripe configuration. Get transparent, consistent, and auditable infrastructure with code review workflows.]]></description><link>https://stripe.dev/blog/ai-agents-terraform-stripe-infrastructure</link><guid isPermaLink="true">https://stripe.dev/blog/ai-agents-terraform-stripe-infrastructure</guid><dc:creator><![CDATA[Michael Selander]]></dc:creator><pubDate>Tue, 27 Jan 2026 00:00:00 GMT</pubDate></item><item><title><![CDATA[Versioning in Stripe Workflows: Ship workflow changes with confidence]]></title><description><![CDATA[Versioning in Stripe Workflows lets you edit automations safely with drafts, roll back changes instantly, and see exactly what ran. Update with confidence.]]></description><link>https://stripe.dev/blog/introducing-versioning-for-stripe-workflows</link><guid isPermaLink="true">https://stripe.dev/blog/introducing-versioning-for-stripe-workflows</guid><dc:creator><![CDATA[Tanya Boiteau]]></dc:creator><pubDate>Wed, 10 Dec 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building production-ready Stripe subscriptions using Kiro powers]]></title><description><![CDATA[Learn how to build production-ready Stripe subscriptions faster using Kiro Powers. Implement secure payment flows, webhooks, and scalable architecture with AI assistance.]]></description><link>https://stripe.dev/blog/building-production-ready-stripe-subscriptions-kiro-powers</link><guid isPermaLink="true">https://stripe.dev/blog/building-production-ready-stripe-subscriptions-kiro-powers</guid><dc:creator><![CDATA[Kalyani Koppisetti]]></dc:creator><pubDate>Thu, 04 Dec 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stablecoin payments for Stripe developers: zero crypto knowledge required]]></title><description><![CDATA[Learn how to add stablecoin payments to your Stripe integration in under an hour. Accept USDC on Ethereum, Solana, Polygon, and Base with zero blockchain knowledge—just add 'crypto' to your existing payment methods.]]></description><link>https://stripe.dev/blog/using-stripe-stablecoin-payments-no-crypto-knowledge</link><guid isPermaLink="true">https://stripe.dev/blog/using-stripe-stablecoin-payments-no-crypto-knowledge</guid><dc:creator><![CDATA[Robert Love]]></dc:creator><pubDate>Tue, 25 Nov 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Using a web-based POS with a mobile Terminal reader]]></title><description><![CDATA[Learn how to integrate web-based POS systems with mobile Terminal readers using a React Native wrapper app. Connect M2 readers and Tap to Pay seamlessly.]]></description><link>https://stripe.dev/blog/web-pos-mobile-terminal-integration</link><guid isPermaLink="true">https://stripe.dev/blog/web-pos-mobile-terminal-integration</guid><dc:creator><![CDATA[Benjamin Nuttin]]></dc:creator><pubDate>Thu, 23 Oct 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[How we built it: Real-time analytics for Stripe Billing]]></title><description><![CDATA[Among global business leaders surveyed, 84% agree that adapting pricing quickly will be a key competitive advantage. Our new real-time analytics system for Stripe Billing helps them spot customer trends just as they emerge.]]></description><link>https://stripe.dev/blog/how-we-built-it-real-time-analytics-for-stripe-billing</link><guid isPermaLink="true">https://stripe.dev/blog/how-we-built-it-real-time-analytics-for-stripe-billing</guid><dc:creator><![CDATA[Reed Trevelyan]]></dc:creator><pubDate>Tue, 16 Sep 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Seamlessly connect Stripe events to your frontend]]></title><description><![CDATA[Learn how to connect Stripe events to your frontend applications using real-time subscriptions, webhooks, and AWS services. Build responsive payment UIs that react instantly to transaction updates, subscription changes, and account modifications with event-driven architecture.]]></description><link>https://stripe.dev/blog/seamlessly-connect-stripe-events-to-your-frontend</link><guid isPermaLink="true">https://stripe.dev/blog/seamlessly-connect-stripe-events-to-your-frontend</guid><dc:creator><![CDATA[Josh Kahn]]></dc:creator><pubDate>Thu, 11 Sep 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Workflows: Automate compliance safeguards by flagging transactions]]></title><description><![CDATA[Learn how to automate compliance safeguards with Stripe Workflows by flagging high-value transactions and suspicious orders to enhance risk management.]]></description><link>https://stripe.dev/blog/workflows-automate-compliance-safeguards</link><guid isPermaLink="true">https://stripe.dev/blog/workflows-automate-compliance-safeguards</guid><dc:creator><![CDATA[Ashley Ansari]]></dc:creator><pubDate>Thu, 11 Sep 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Marketplace monetization with Stripe]]></title><description><![CDATA[Complete guide to monetizing online marketplaces with Stripe Connect. Configure transaction fees, usage-based billing, and automated invoicing with code examples.]]></description><link>https://stripe.dev/blog/marketplace-monetization-with-stripe</link><guid isPermaLink="true">https://stripe.dev/blog/marketplace-monetization-with-stripe</guid><dc:creator><![CDATA[Ana Andres]]></dc:creator><pubDate>Thu, 04 Sep 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Real-time vs batch reconciliation: Practical patterns for keeping data in sync]]></title><description><![CDATA[Learn effective data reconciliation strategies to keep product information synchronized between your internal systems and Stripe. Explore real-time vs batch processing tools, validation techniques, and best practices for maintaining consistent data across multiple platforms as your business scales.]]></description><link>https://stripe.dev/blog/database-reconciliation-growing-businesses-part-3</link><guid isPermaLink="true">https://stripe.dev/blog/database-reconciliation-growing-businesses-part-3</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Sat, 23 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[From naive webhooks to durable sync: Queue-based and event-driven data reconciliation patterns]]></title><description><![CDATA[Learn advanced database reconciliation patterns for Stripe integration. Explore queue-based architectures, event-driven sync, and robust error handling to maintain product data consistency at scale.]]></description><link>https://stripe.dev/blog/database-reconciliation-growing-businesses-part-2</link><guid isPermaLink="true">https://stripe.dev/blog/database-reconciliation-growing-businesses-part-2</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Fri, 22 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Keeping product data aligned with Stripe as your systems scale]]></title><description><![CDATA[Learn how product data synchronization between internal databases and payment providers like Stripe evolves from simple scripts to complex architectural challenges as your business scales from hundreds to millions of products.]]></description><link>https://stripe.dev/blog/database-reconciliation-growing-businesses-part-1</link><guid isPermaLink="true">https://stripe.dev/blog/database-reconciliation-growing-businesses-part-1</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Thu, 21 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Gating entrances with Stripe and NFC passes]]></title><description><![CDATA[Learn how to gate physical entrances using Stripe subscriptions and NFC passes. This guide shows how to issue Apple/Google Wallet passes with PassNinja, integrate Stripe Checkout, and control door access with a Raspberry Pi and NFC reader.]]></description><link>https://stripe.dev/blog/gating-entrances-with-stripe-and-nfc-passes</link><guid isPermaLink="true">https://stripe.dev/blog/gating-entrances-with-stripe-and-nfc-passes</guid><dc:creator><![CDATA[Joshua Nussbaum]]></dc:creator><pubDate>Thu, 21 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Guardrails for money movement: Integrating Stripe MCP with Portia AI]]></title><description><![CDATA[Learn how to build secure AI agents for payment processing using Stripe MCP and Portia AI, with built-in guardrails and human approval workflows.]]></description><link>https://stripe.dev/blog/guardrails-money-movement-integrating-stripe-mcp-portia-ai</link><guid isPermaLink="true">https://stripe.dev/blog/guardrails-money-movement-integrating-stripe-mcp-portia-ai</guid><dc:creator><![CDATA[Mounir Mouawad]]></dc:creator><pubDate>Wed, 13 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building financial operations agents with Hypermode and Stripe]]></title><description><![CDATA[Learn how to build sophisticated financial operations agents using natural language with Hypermode and Stripe. Create AI agents that handle payments, process refunds, generate invoices, and automate complex financial workflows—no coding required.]]></description><link>https://stripe.dev/blog/building-financial-operations-agents-hypermode-stripe</link><guid isPermaLink="true">https://stripe.dev/blog/building-financial-operations-agents-hypermode-stripe</guid><dc:creator><![CDATA[William Lyon]]></dc:creator><pubDate>Wed, 06 Aug 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Workflows: Automatically customize an object with metadata]]></title><description><![CDATA[Workflow patterns provide repeatable solutions to common developer problems. This pattern helps automate customize a Stripe object with metadata.]]></description><link>https://stripe.dev/blog/workflows-customize-objects-metadata</link><guid isPermaLink="true">https://stripe.dev/blog/workflows-customize-objects-metadata</guid><dc:creator><![CDATA[Ashley Ansari]]></dc:creator><pubDate>Tue, 22 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[How we built it: Jurisdiction resolution for Stripe Tax]]></title><description><![CDATA[Our new jurisdiction resolution system (JRS) is a faster, less resource-intensive solution to the challenging problem of determining tax obligations in places with complicated, overlapping tax jurisdictions.]]></description><link>https://stripe.dev/blog/how-we-built-it-jurisdiction-resolution-for-stripe-tax</link><guid isPermaLink="true">https://stripe.dev/blog/how-we-built-it-jurisdiction-resolution-for-stripe-tax</guid><dc:creator><![CDATA[Erich Rentz]]></dc:creator><pubDate>Thu, 10 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Workflows: Creating early fraud alerts for streamlined refunds]]></title><description><![CDATA[Workflow patterns provide repeatable solutions to common developer problems. This pattern helps automate creating early fraud alerts when streamlining refunds.]]></description><link>https://stripe.dev/blog/workflows-creating-early-fraud-alerts-for-streamlined-refunds</link><guid isPermaLink="true">https://stripe.dev/blog/workflows-creating-early-fraud-alerts-for-streamlined-refunds</guid><dc:creator><![CDATA[Ashley Ansari]]></dc:creator><pubDate>Thu, 10 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stay within limits: API rate-limit-friendly pattern for Stripe webhooks]]></title><description><![CDATA[Learn how to build a resilient, rate-limit-friendly system for handling Stripe webhooks at scale. This guide explains the fetch-before-process pattern, its risks under high volume, and how to use Hookdeck to queue and throttle webhooks—ensuring reliable processing without exceeding Stripe API limits.]]></description><link>https://stripe.dev/blog/stay-within-limits-api-rate-limit-friendly-pattern-for-stripe-webhooks</link><guid isPermaLink="true">https://stripe.dev/blog/stay-within-limits-api-rate-limit-friendly-pattern-for-stripe-webhooks</guid><dc:creator><![CDATA[Phil Leggetter]]></dc:creator><pubDate>Thu, 03 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stripe for marketplaces: Mapping commercial relationships in code]]></title><description><![CDATA[Learn how to use Stripe Connect to power your marketplace. Configure your fund flows, onboard merchants and manage payments in a few lines of code.]]></description><link>https://stripe.dev/blog/stripe-marketplaces-mapping-commercial-relationships-code</link><guid isPermaLink="true">https://stripe.dev/blog/stripe-marketplaces-mapping-commercial-relationships-code</guid><dc:creator><![CDATA[Ana Andres]]></dc:creator><pubDate>Thu, 03 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Using Connect embedded components to streamline your Connect onboarding flow]]></title><description><![CDATA[Replace hosted onboarding with embedded Connect components. Keep users on your platform while collecting requirements and enabling payments..]]></description><link>https://stripe.dev/blog/connect-embedded-components-streamline-onboarding</link><guid isPermaLink="true">https://stripe.dev/blog/connect-embedded-components-streamline-onboarding</guid><dc:creator><![CDATA[Jorge Aguirre Gonzalez]]></dc:creator><pubDate>Wed, 02 Jul 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Implementing scalable metered billing with Stripe: How Edgee handles billions of events]]></title><description><![CDATA[Discover how Edgee built a scalable, usage-based billing system processing billions of requests across 100+ global edge locations. Learn how they leverage Stripe’s metering and billing APIs to ensure accurate, resilient invoicing in a complex distributed architecture, all while solving critical web analytics data loss challenges.]]></description><link>https://stripe.dev/blog/implementing-scalable-metered-billing-with-stripe-how-edgee-handles-billions-of-events</link><guid isPermaLink="true">https://stripe.dev/blog/implementing-scalable-metered-billing-with-stripe-how-edgee-handles-billions-of-events</guid><dc:creator><![CDATA[Alex Casalboni]]></dc:creator><pubDate>Tue, 24 Jun 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stop juggling multiple POS devices with Stripe Terminal]]></title><description><![CDATA[Eliminate separate devices and manual data entry. Stripe Terminal's on-screen input collection consolidates customer interactions in one place.]]></description><link>https://stripe.dev/blog/stripe-terminal-on-screen-input-collection</link><guid isPermaLink="true">https://stripe.dev/blog/stripe-terminal-on-screen-input-collection</guid><dc:creator><![CDATA[Andrew Robinson]]></dc:creator><pubDate>Thu, 12 Jun 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Extending Docusign with Stripe to automate complex billing workflows]]></title><description><![CDATA[Discover how to streamline your agreement process by connecting DocuSign with Stripe using extension apps. Learn to build automated billing workflows without complex coding.]]></description><link>https://stripe.dev/blog/docusign-stripe-integration-automating-billing-workflows</link><guid isPermaLink="true">https://stripe.dev/blog/docusign-stripe-integration-automating-billing-workflows</guid><dc:creator><![CDATA[Paige Rossi]]></dc:creator><pubDate>Mon, 02 Jun 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[How to easily charge customers across accounts in an organization]]></title><description><![CDATA[Learn how to simplify customer charging across multiple accounts in your organization using Stripe's new sharing feature.]]></description><link>https://stripe.dev/blog/how-to-charge-customers-across-accounts</link><guid isPermaLink="true">https://stripe.dev/blog/how-to-charge-customers-across-accounts</guid><dc:creator><![CDATA[Daniel Wood]]></dc:creator><pubDate>Wed, 07 May 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Introducing Stripe Workflows: Tailoring Payments to Your Business Needs]]></title><description><![CDATA[Today, Stripe launches Stripe Workflows, a powerful new way to automate your payment operations and orchestrate Stripe products with ease—right from the Dashboard. Whether you are looking to streamline invoicing, manage fraud detection, automate subscription logic, or build custom quote-to-cash flows, Stripe Workflows helps developers move faster with fewer lines of code. With built-in support for real-time triggers, conditional logic, and seamless integration across Stripe’s ecosystem, Workflows eliminates the need for managing infrastructure or writing boilerplate logic. Instead, you get a visual, event-driven automation engine designed for high-performance financial operations at scale. In this post, we’ll explore how Stripe Workflows can help you simplify complexity, boost developer productivity, and unlock new use cases—all with low latency and high reliability.]]></description><link>https://stripe.dev/blog/introducing-stripe-workflows</link><guid isPermaLink="true">https://stripe.dev/blog/introducing-stripe-workflows</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Wed, 07 May 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Introducing Stripe's new public preview release channel]]></title><description><![CDATA[Discover the benefits of Stripe's new public preview release channel, designed to provide early access to cutting-edge API features before their general availability. Start innovating faster with Stripe’s latest offerings while sharing your feedback to shape future developments!]]></description><link>https://stripe.dev/blog/introducing-stripes-new-public-preview-release-channel</link><guid isPermaLink="true">https://stripe.dev/blog/introducing-stripes-new-public-preview-release-channel</guid><dc:creator><![CDATA[Paul Anderson]]></dc:creator><pubDate>Wed, 07 May 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Sessions 2025 Developer Track resources]]></title><description><![CDATA[Discover the latest from Stripe Sessions! Explore new products, APIs, and enhancements, including Stripe Workflows for no-code automation, MCP server for AI integration, and Accounts v2 for streamlined management.]]></description><link>https://stripe.dev/blog/sessions-2025-dev-track-resources</link><guid isPermaLink="true">https://stripe.dev/blog/sessions-2025-dev-track-resources</guid><dc:creator><![CDATA[Ashley Ansari]]></dc:creator><pubDate>Wed, 07 May 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Optimizing Stripe API performance in Lambda with caching strategies]]></title><description><![CDATA[Discover advanced caching strategies to optimize Stripe API performance in AWS Lambda using Amazon ElastiCache and DynamoDB. Learn how to manage API rate limits, reduce latency, and minimize costs while ensuring data consistency and scalability in high-volume applications.]]></description><link>https://stripe.dev/blog/optimizing-stripe-api-performance-lambda-caching-elasticache-dynamodb</link><guid isPermaLink="true">https://stripe.dev/blog/optimizing-stripe-api-performance-lambda-caching-elasticache-dynamodb</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Mon, 21 Apr 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Because nobody likes being charged twice]]></title><description><![CDATA[In complex, high-volume systems, even minor failures—like a dropped internet connection—can lead to major headaches, such as duplicate charges. This post explores advanced patterns for integrating Stripe into your enterprise applications with a focus on building fault-tolerant, user-friendly payment systems. Learn how strategies like idempotency and message queues can protect your users from double charges, reduce operational errors, and improve reliability as your system scales.]]></description><link>https://stripe.dev/blog/because-nobody-likes-being-charged-twice</link><guid isPermaLink="true">https://stripe.dev/blog/because-nobody-likes-being-charged-twice</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Thu, 10 Apr 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Using an AWS microservice architecture for subscription management]]></title><description><![CDATA[Explore the complexities of enterprise subscription management and discover how an AWS microservice architecture can streamline subscription lifecycles. This guide uses AWS services to create a scalable, reliable, and auditable subscription management system, addressing challenges like mid-cycle plan changes and usage-based billing adjustments.]]></description><link>https://stripe.dev/blog/aws-microservice-architecture-subscription-management</link><guid isPermaLink="true">https://stripe.dev/blog/aws-microservice-architecture-subscription-management</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Tue, 08 Apr 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Unlocking powerful analytics with Stripe Data Pipeline and Google BigQuery]]></title><description><![CDATA[Discover how to integrate Stripe Data Pipeline with Google Cloud Storage and BigQuery for powerful analytics. This guide walks you through setting up automated data transfers, optimizing reporting, and unlocking valuable insights to enhance your business decisions.]]></description><link>https://stripe.dev/blog/unlock-powerful-analytics-stripe-data-pipeline-bigquery</link><guid isPermaLink="true">https://stripe.dev/blog/unlock-powerful-analytics-stripe-data-pipeline-bigquery</guid><dc:creator><![CDATA[Sushant Jain]]></dc:creator><pubDate>Fri, 21 Mar 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stripe’s new AI Assistant in VS Code]]></title><description><![CDATA[Learn about the Stripe AI assistant in VS Code and how we built it, including technical details on retrieval, evaluations, measurement, and more.]]></description><link>https://stripe.dev/blog/stripes-ai-assistant-vs-code</link><guid isPermaLink="true">https://stripe.dev/blog/stripes-ai-assistant-vs-code</guid><dc:creator><![CDATA[Mathew Varughese]]></dc:creator><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Real-time payment analytics: Building a data pipeline from Stripe to AWS]]></title><description><![CDATA[Discover how to build a scalable real-time payment analytics pipeline from Stripe to AWS. This guide explores the challenges, architectural components, and implementation details to help businesses monitor transactions, enhance security, and gain insights into customer behavior.]]></description><link>https://stripe.dev/blog/real-time-payment-analytics-stripe-to-aws-data-pipeline</link><guid isPermaLink="true">https://stripe.dev/blog/real-time-payment-analytics-stripe-to-aws-data-pipeline</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Fri, 14 Mar 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Load balancing Stripe API calls from multiple AWS regions]]></title><description><![CDATA[Implementing a resilient multi-region payment processing system using AWS and Stripe ensures reliable webhook handling, minimizes outages, and complies with regulations. This guide covers architecture design, challenges, and AWS service integration for optimal global performance and rate limit management.]]></description><link>https://stripe.dev/blog/load-balancing-stripe-api-calls-multiple-aws-regions</link><guid isPermaLink="true">https://stripe.dev/blog/load-balancing-stripe-api-calls-multiple-aws-regions</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Thu, 06 Mar 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Importing sales data from Stripe into AWS]]></title><description><![CDATA[This article focuses on how to process Stripe's data in your AWS account with minimal code. You'll learn how to query your business and customer data using SQL, assisted by an LLM (Large Language Model) for query generation. Additionally, it demonstrates how to enhance the security of your data integration by using the native Stripe-AWS integration, specifically the Stripe Event Destination to Amazon EventBridge feature.]]></description><link>https://stripe.dev/blog/importing-sales-data-from-stripe-into-aws</link><guid isPermaLink="true">https://stripe.dev/blog/importing-sales-data-from-stripe-into-aws</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Tue, 04 Mar 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building serverless usage notification with AWS]]></title><description><![CDATA[In this article, we will guide you on how to set up usage threshold alerts based on consumption for customers with pay-as-you-go plans. By integrating AWS's serverless tools with Stripe, you can create a streamlined and easy-to-manage notification system with minimal coding.]]></description><link>https://stripe.dev/blog/building-serverless-usage-notification-with-aws</link><guid isPermaLink="true">https://stripe.dev/blog/building-serverless-usage-notification-with-aws</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Thu, 27 Feb 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Securing Stripe API Keys in AWS with automatic rotation]]></title><description><![CDATA[Learn how to securely manage and automatically rotate your Stripe API keys in AWS for a production-grade approach. This guide covers best practices, tools, and strategies to enhance the security of your financial transactions.]]></description><link>https://stripe.dev/blog/securing-stripe-api-keys-aws-automatic-rotation</link><guid isPermaLink="true">https://stripe.dev/blog/securing-stripe-api-keys-aws-automatic-rotation</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Fri, 21 Feb 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Tracking customer spend in an omnichannel or multiprocessor environment]]></title><description><![CDATA[Discover how to effectively track customer spending across multiple channels and payment processors. Learn about the challenges of fragmented payment systems and explore solutions like the Payment Account Reference (PAR) to gain a unified view.]]></description><link>https://stripe.dev/blog/tracking-customer-spend-omnichannel-multiprocessor-environment</link><guid isPermaLink="true">https://stripe.dev/blog/tracking-customer-spend-omnichannel-multiprocessor-environment</guid><dc:creator><![CDATA[Andrew Robinson]]></dc:creator><pubDate>Wed, 19 Feb 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building rock-solid Stripe integrations: A developer's guide to success]]></title><description><![CDATA[Learn about Stripe integrations with essential tips for robust, secure payment systems and seamless user experiences. This guide prepares developers for real-world scenarios, from subscription management to dispute resolution, ensuring secure and seamless payments.]]></description><link>https://stripe.dev/blog/building-solid-stripe-integrations-developers-guide-success</link><guid isPermaLink="true">https://stripe.dev/blog/building-solid-stripe-integrations-developers-guide-success</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Thu, 06 Feb 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Building resilient webhook handlers in AWS: Implementing DLQs for Stripe events]]></title><description><![CDATA[Discover how to build reliable webhook handlers for Stripe events using AWS in this comprehensive guide. Learn about the challenges of processing webhook events at scale and how to address them with an enterprise-grade architecture.]]></description><link>https://stripe.dev/blog/building-resilient-webhook-handlers-aws-dlqs-stripe-events</link><guid isPermaLink="true">https://stripe.dev/blog/building-resilient-webhook-handlers-aws-dlqs-stripe-events</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Thu, 30 Jan 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[New to Stripe? Learn the key concepts for software developers.]]></title><description><![CDATA[Discover the key concepts and terms for integrating Stripe in your applications. This guide covers Payment Intents Customer management, Subscription billing, Webhooks, Disputes, Refunds, and the benefits of expanded responses, providing developers with the tools they need to streamline payment processing efficiently.]]></description><link>https://stripe.dev/blog/new-to-stripe-learn-key-concepts-software-developers</link><guid isPermaLink="true">https://stripe.dev/blog/new-to-stripe-learn-key-concepts-software-developers</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Wed, 29 Jan 2025 00:00:00 GMT</pubDate></item><item><title><![CDATA[Crush errors with Sandbox testing]]></title><description><![CDATA[With Sandboxes, you can reproduce and troubleshoot errors in your integration without impacting live transactions.]]></description><link>https://stripe.dev/blog/crush-errors-with-sandbox-testing</link><guid isPermaLink="true">https://stripe.dev/blog/crush-errors-with-sandbox-testing</guid><dc:creator><![CDATA[David Edoh-Bedi]]></dc:creator><pubDate>Thu, 19 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Testing Connect onboarding with Sandboxes]]></title><description><![CDATA[As a platform, you can accelerate your Connect development with Sandboxes, by replicating your live settings to test out the merchant onboarding flow.]]></description><link>https://stripe.dev/blog/testing-connect-onboarding-with-sandboxes</link><guid isPermaLink="true">https://stripe.dev/blog/testing-connect-onboarding-with-sandboxes</guid><dc:creator><![CDATA[David Edoh-Bedi]]></dc:creator><pubDate>Thu, 19 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Developing a modern architecture for energy utilities with embedded finance]]></title><description><![CDATA[This blog explores how utilities can enhance customer engagement and capture energy-related revenue by creating an online marketplace.]]></description><link>https://stripe.dev/blog/developing-modern-architecture-energy-utilities-embedded-finance</link><guid isPermaLink="true">https://stripe.dev/blog/developing-modern-architecture-energy-utilities-embedded-finance</guid><dc:creator><![CDATA[Rajan Patel]]></dc:creator><pubDate>Tue, 17 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[How do I store inventory data in my Stripe application]]></title><description><![CDATA[Explore the critical importance of managing real-time inventory updates for both online marketplaces and physical stores. This blog post details the development of an event-driven architecture designed to synchronize inventory levels with Stripe payment events using AWS cloud services. The demonstration centers around the DevRel Swag Store, showcasing a practical application used at the GOTO Chicago event, which integrates serverless technologies like Amazon DynamoDB, AWS Lambda, and IoT Core for efficient inventory management. Learn about the challenges of using Stripe metadata for inventory, and discover robust solutions for handling race conditions and implementing dynamic inventory checks. Additionally, understand the trade-offs between using Stripe Payment Links and custom payment processes for real-time stock validation.]]></description><link>https://stripe.dev/blog/how-do-i-store-inventory-data-in-my-stripe-application</link><guid isPermaLink="true">https://stripe.dev/blog/how-do-i-store-inventory-data-in-my-stripe-application</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Mon, 16 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Japan community highlights: Effective testing and security]]></title><description><![CDATA[This article highlights development tips for efficiently developing and operating Stripe at a lower cost, as presented by the Japanese Stripe user community JP_Stripes. We'll focus on content from two events held in September 2024 in Aizuwakamatsu, Fukushima Prefecture, and Sapporo, Hokkaido.]]></description><link>https://stripe.dev/blog/japan-community-highlights-2024-09</link><guid isPermaLink="true">https://stripe.dev/blog/japan-community-highlights-2024-09</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Fri, 13 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Enhance your monitoring by integrating Stripe events with AWS CloudWatch Log Groups]]></title><description><![CDATA[Integrating Stripe events with AWS CloudWatch Log Groups enhances monitoring by enabling real-time tracking and analysis of Stripe transactions. This setup allows for seamless transfer of Stripe data to CloudWatch via Amazon EventBridge, streamlining payment operations. It provides the tools to visualize, monitor, and respond to events efficiently, optimizing strategic decisions.]]></description><link>https://stripe.dev/blog/enhance-your-monitoring-by-integrating-stripe-events-with-aws-cloudwatch-log-groups</link><guid isPermaLink="true">https://stripe.dev/blog/enhance-your-monitoring-by-integrating-stripe-events-with-aws-cloudwatch-log-groups</guid><dc:creator><![CDATA[Andrew Robinson]]></dc:creator><pubDate>Mon, 09 Dec 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Data access patterns for simple Stripe integrations]]></title><description><![CDATA[Is your Stripe integration ready to scale with your application? In this blog post, explore smart data strategies to enhance performance and security. Learn how to leverage Stripe/'s features, secure web backends, and serverless functions for efficient data management. Discover when to integrate a global CDN and use a separate database for deeper data control, ensuring a seamless user experience.]]></description><link>https://stripe.dev/blog/data-access-patterns-for-simple-stripe-Integrations</link><guid isPermaLink="true">https://stripe.dev/blog/data-access-patterns-for-simple-stripe-Integrations</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Wed, 27 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Managing multiple Stripe test environments from your AWS-hosted application]]></title><description><![CDATA[Stripe sandboxes enhance test environment management, offering improved functionality over test mode, allowing isolated accounts, multiple developers, and better access control while integrating seamlessly with AWS applications.]]></description><link>https://stripe.dev/blog/managing-multiple-stripe-test-environments-from-aws</link><guid isPermaLink="true">https://stripe.dev/blog/managing-multiple-stripe-test-environments-from-aws</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Tue, 26 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Getting started with Stripe in the UAE: A comprehensive guide for developers]]></title><description><![CDATA[Stripe has emerged as a vital payment processing platform in the UAE, offering diverse features like automated billing, fraud protection, and multi-currency support, empowering developers to streamline e-commerce operations.]]></description><link>https://stripe.dev/blog/getting-started-with-stripe-in-the-uae</link><guid isPermaLink="true">https://stripe.dev/blog/getting-started-with-stripe-in-the-uae</guid><dc:creator><![CDATA[Soad Abuelnaga]]></dc:creator><pubDate>Mon, 25 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Using demo data for testing Stripe integrations in AWS-hosted applications]]></title><description><![CDATA[This post discusses integrating the Stripe agent toolkit with large language models (LLMs) to enhance automation workflows, enabling financial services access, metered billing, and streamlined operations across agent frameworks.]]></description><link>https://stripe.dev/blog/using-demo-data-for-testing-stripe-integrations-in-aws</link><guid isPermaLink="true">https://stripe.dev/blog/using-demo-data-for-testing-stripe-integrations-in-aws</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Avoiding silent errors in your Stripe integration]]></title><description><![CDATA[Once your Stripe integration is live, it’s easy to set it and forget it. You can move on and focus on other elements of your application. However, trouble may be brewing behind the scenes. Unless you’ve set up robust logging and alerting in your application you may not be aware of increasing Stripe API error rates which could impact your bottom line]]></description><link>https://stripe.dev/blog/avoiding-silent-errors</link><guid isPermaLink="true">https://stripe.dev/blog/avoiding-silent-errors</guid><dc:creator><![CDATA[Abe Haskins]]></dc:creator><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Adding payments to your LLM agentic workflows]]></title><description><![CDATA[This post discusses integrating the Stripe agent toolkit with large language models (LLMs) to enhance automation workflows, enabling financial services access, metered billing, and streamlined operations across agent frameworks.]]></description><link>https://stripe.dev/blog/adding-payments-to-your-agentic-workflows</link><guid isPermaLink="true">https://stripe.dev/blog/adding-payments-to-your-agentic-workflows</guid><dc:creator><![CDATA[Steve Kaliski]]></dc:creator><pubDate>Thu, 14 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Developing and investigating subscription data flow]]></title><description><![CDATA[This article shows you how to use Stripe's sandbox to simplify your development process. You'll learn to create isolated test environments, simulate real-world scenarios, and debug your subscription logic efficiently. ]]></description><link>https://stripe.dev/blog/developing-and-investigating-subscription-data-flow</link><guid isPermaLink="true">https://stripe.dev/blog/developing-and-investigating-subscription-data-flow</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Wed, 13 Nov 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Growing your Stripe integration With Event Destinations]]></title><description><![CDATA[Event Destinations has begun rolling out to general availability as of 10/30 and will soon be enabled for all accounts. This post explores how to use Stripe Event Destinations and Amazon EventBridge to achieve near infinite customization possibilities for your payment solutions without disrupting your existing integrations.]]></description><link>https://stripe.dev/blog/growing-your-stripe-integration-with-event-destinations</link><guid isPermaLink="true">https://stripe.dev/blog/growing-your-stripe-integration-with-event-destinations</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Thu, 31 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Managing SaaS access control with Stripe’s Entitlements API]]></title><description><![CDATA[This post introduces how to manage SaaS feature entitlements efficiently using the Stripe API. It explains why it's important to provide multiple plans to your customers and how to differentiate each plan through entitlement management. With the Stripe API, managing entitlements can become more straightforward, allowing you to focus on building and improving your core services.]]></description><link>https://stripe.dev/blog/managing-saas-access-control-with-stripe-entitlements-api</link><guid isPermaLink="true">https://stripe.dev/blog/managing-saas-access-control-with-stripe-entitlements-api</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Thu, 31 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Preparing for Stripe API upgrades]]></title><description><![CDATA[New Stripe API versions come with new, and sometimes breaking, changes which should be evaluated before upgrading. Stripe Sandboxes and Workbench provide tooling to create isolated workspaces to test applications against these new changes.]]></description><link>https://stripe.dev/blog/prepare-for-api-upgrades</link><guid isPermaLink="true">https://stripe.dev/blog/prepare-for-api-upgrades</guid><dc:creator><![CDATA[Cecil Phillip]]></dc:creator><pubDate>Thu, 24 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Optimize payment flow while reducing code complexity with Stripe's A/B Testing]]></title><description><![CDATA[This post explores how to leverage Stripe's A/B testing, its benefits, and how you can use it to boost online sales. You can learn how to improve the conversion rate by optimizing payment options without adding further code.]]></description><link>https://stripe.dev/blog/optimize-payment-flow-reduce-complexity-stripe-ab-testing</link><guid isPermaLink="true">https://stripe.dev/blog/optimize-payment-flow-reduce-complexity-stripe-ab-testing</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Wed, 23 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Easily debug your 3DS authentication with Stripe Workbench]]></title><description><![CDATA[In this article, you'll learn how to investigate the payment process with just a few clicks on the Stripe dashboard. You'll also see how to obtain event data for testing code related to the 3DS authentication flow.]]></description><link>https://stripe.dev/blog/easily-debug-your-3ds-authentication-with-stripe-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/easily-debug-your-3ds-authentication-with-stripe-workbench</guid><dc:creator><![CDATA[Hidetaka Okamoto]]></dc:creator><pubDate>Tue, 22 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Creating reusable developer environments with Stripe Sandboxes]]></title><description><![CDATA[When onboarding new team members, getting their development environments setup can be very time consuming. Preprovisioned environments with Stripe sandboxes and development containers can speed up their time to productivity.]]></description><link>https://stripe.dev/blog/creating-reusable-dev-environments-with-sandboxes</link><guid isPermaLink="true">https://stripe.dev/blog/creating-reusable-dev-environments-with-sandboxes</guid><dc:creator><![CDATA[Cecil Phillip]]></dc:creator><pubDate>Sun, 20 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Testing subscriptions with Stripe Test Clocks and Workbench]]></title><description><![CDATA[Validating payment logic that gets triggered over a period of time is challenging and sometimes results in inelegant solutions.The combination of test clocks and workbench will improve the ability for developers to build and debug recurring payments.]]></description><link>https://stripe.dev/blog/testing-subscriptions-with-stripe-test-clocks-and-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/testing-subscriptions-with-stripe-test-clocks-and-workbench</guid><dc:creator><![CDATA[Cecil Phillip]]></dc:creator><pubDate>Mon, 14 Oct 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Choosing the right sandbox strategy for your organization]]></title><description><![CDATA[Stripe Sandboxes offer a powerful solution for isolating testing environments, but how you implement them can make all the difference. Pick a sandbox strategy that best suits your organizations development approach and team size.]]></description><link>https://stripe.dev/blog/choosing-the-right-sandbox-strategy-for-your-organization</link><guid isPermaLink="true">https://stripe.dev/blog/choosing-the-right-sandbox-strategy-for-your-organization</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Thu, 26 Sep 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Upgrading your Stripe plugin security]]></title><description><![CDATA[Secure your Stripe integrations by ditching unrestricted secret keys—learn how to protect merchant accounts with restricted access API keys and OAuth 2.0, and avoid compliance fees.]]></description><link>https://stripe.dev/blog/upgrading-your-stripe-plugin-security</link><guid isPermaLink="true">https://stripe.dev/blog/upgrading-your-stripe-plugin-security</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Thu, 19 Sep 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Avoiding test mode tangles with Stripe Sandboxes]]></title><description><![CDATA[Discover how to create independent testing environments with Stripe Sandboxes, streamline your development through GitHub automation, and prioritize the security of your API keys to enhance your payment integration process.]]></description><link>https://stripe.dev/blog/avoiding-test-mode-tangles-with-stripe-sandboxes</link><guid isPermaLink="true">https://stripe.dev/blog/avoiding-test-mode-tangles-with-stripe-sandboxes</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Mon, 16 Sep 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Advanced error handling patterns for Stripe enterprise developers]]></title><description><![CDATA[This post demonstrates some more advanced patterns to help you build resilient and robust payment systems to integrate Stripe with your enterprise applications. As your integration grows in complexity and volume, these patterns become crucial for maintaining system stability and providing a smooth user experience.]]></description><link>https://stripe.dev/blog/advanced-error-handling-patterns-for-Stripe-enterprise-developers</link><guid isPermaLink="true">https://stripe.dev/blog/advanced-error-handling-patterns-for-Stripe-enterprise-developers</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Tue, 03 Sep 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Simple error handling strategies with Stripe Workbench]]></title><description><![CDATA[With Workbench, developers now have a bird’s-eye view of their integration which shows many potential issues in one place. This makes it easier to see the impact of each incident, see how often it’s happening, and receive actionable advice for resolving the issue.]]></description><link>https://stripe.dev/blog/simple-error-handling-strategies-with-stripe-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/simple-error-handling-strategies-with-stripe-workbench</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Mon, 02 Sep 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stripe Developer Digest (August 2024): Workbench is now available to everyone]]></title><description><![CDATA[Test Stripe functionality in an isolated environment]]></description><link>https://stripe.dev/blog/stripe-developer-digest-august-2024-workbench-is-now-available-to-everyone</link><guid isPermaLink="true">https://stripe.dev/blog/stripe-developer-digest-august-2024-workbench-is-now-available-to-everyone</guid><dc:creator><![CDATA[Stripe Team]]></dc:creator><pubDate>Fri, 30 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Bringing your Stripe objects to life with Workbench]]></title><description><![CDATA[This post shows how to use the Stripe Workbench Inspector to examine the lifecycle of a PaymentIntent object.]]></description><link>https://stripe.dev/blog/bringing-your-stripe-objects-to-life-with-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/bringing-your-stripe-objects-to-life-with-workbench</guid><dc:creator><![CDATA[Ben Smith]]></dc:creator><pubDate>Thu, 29 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Debugging your Stripe Invoicing integration with Workbench]]></title><description><![CDATA[With Stripe Invoicing, you can create and manage invoices for one-time and recurring payments. Whether caused by infrastructure issues or coding bugs, integration failures do sometimes happen, which can prevent invoices from being paid in a timely manner.]]></description><link>https://stripe.dev/blog/debugging-your-stripe-invoicing-integration-with-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/debugging-your-stripe-invoicing-integration-with-workbench</guid><dc:creator><![CDATA[David Edoh-Bedi]]></dc:creator><pubDate>Thu, 29 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Peeking under the hood of Stripe Invoicing]]></title><description><![CDATA[Stripe Invoicing offers a no-code solution for sending invoices to customers. Because this option handles the complexity of all underlying API calls, developers sometimes struggle to understand the different phases a Stripe invoice goes through, which is problematic when attempting to debug payment failures. ]]></description><link>https://stripe.dev/blog/peeking-under-the-hood-of-stripe-invoicing</link><guid isPermaLink="true">https://stripe.dev/blog/peeking-under-the-hood-of-stripe-invoicing</guid><dc:creator><![CDATA[David Edoh-Bedi]]></dc:creator><pubDate>Mon, 26 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Observing immediate versus delayed payments with Stripe Workbench]]></title><description><![CDATA[Immediate and delayed payments need to be handled differently within an integration. It’s important to understand what events to listen for and properties to inspect for relevant changes.]]></description><link>https://stripe.dev/blog/observing-immediate-versus-delayed-payments-with-stripe-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/observing-immediate-versus-delayed-payments-with-stripe-workbench</guid><dc:creator><![CDATA[Cecil Phillip]]></dc:creator><pubDate>Fri, 23 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Debugging your AWS/Stripe integration just got easier]]></title><description><![CDATA[For developers building on AWS, you have various choices for processing payments within your application. Most developers choose a payment processing service to handle this part of their application flow, which involves integrating with a third-party vendor outside of the AWS environment.]]></description><link>https://stripe.dev/blog/debugging-your-aws-stripe-integration-just-got-easier</link><guid isPermaLink="true">https://stripe.dev/blog/debugging-your-aws-stripe-integration-just-got-easier</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Wed, 21 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Resolving production issues in your AWS/Stripe integration using Workbench]]></title><description><![CDATA[This blog shows how to find when something is wrong in production, avoid jumping between tabs/docs to find information, and resolving issues quickly in the troubleshooting process, using an AWS integration as a starting point.]]></description><link>https://stripe.dev/blog/resolving-production-issues-in-your-aws-stripe-integration-using-workbench</link><guid isPermaLink="true">https://stripe.dev/blog/resolving-production-issues-in-your-aws-stripe-integration-using-workbench</guid><dc:creator><![CDATA[James Beswick]]></dc:creator><pubDate>Wed, 21 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Doing more with less: Reducing requests to the Stripe API]]></title><description><![CDATA[The performance of an application can directly affect the customer experience. Using the expand feature along with caching techniques, developers can improve the performance of their application by reducing the number of API calls to Stripe.]]></description><link>https://stripe.dev/blog/doing-more-with-less-reducing-requests-to-the-stripe-api</link><guid isPermaLink="true">https://stripe.dev/blog/doing-more-with-less-reducing-requests-to-the-stripe-api</guid><dc:creator><![CDATA[Cecil Phillip]]></dc:creator><pubDate>Mon, 19 Aug 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stripe Developer Digest (June 2024): Join the Sandboxes private beta]]></title><description><![CDATA[Test Stripe functionality in an isolated environment]]></description><link>https://stripe.dev/blog/stripe-developer-digest-june-2024-join-the-sandboxes-private-beta</link><guid isPermaLink="true">https://stripe.dev/blog/stripe-developer-digest-june-2024-join-the-sandboxes-private-beta</guid><dc:creator><![CDATA[Stripe Team]]></dc:creator><pubDate>Sun, 30 Jun 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[How Stripe’s document databases supported 99.999% uptime with zero-downtime data migrations ]]></title><description><![CDATA[In this blog post we’ll share an overview of Stripe’s database infrastructure and discuss the design and application of the Data Movement Platform.]]></description><link>https://stripe.dev/blog/how-stripes-document-databases-supported-99.999-uptime-with-zero-downtime-data-migrations</link><guid isPermaLink="true">https://stripe.dev/blog/how-stripes-document-databases-supported-99.999-uptime-with-zero-downtime-data-migrations</guid><dc:creator><![CDATA[Jimmy Morzaria]]></dc:creator><pubDate>Thu, 06 Jun 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Test clocks: How we made it easier to test Stripe Billing integrations]]></title><description><![CDATA[Stripe Billing allows businesses to manage customer relationships with recurring payments, usage triggers, and other customizable features.]]></description><link>https://stripe.dev/blog/test-clocks-how-we-made-it-easier-to-test-stripe-billing-integrations</link><guid isPermaLink="true">https://stripe.dev/blog/test-clocks-how-we-made-it-easier-to-test-stripe-billing-integrations</guid><dc:creator><![CDATA[Ji Huang]]></dc:creator><pubDate>Thu, 09 May 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Shepherd: How Stripe adapted Chronon to scale ML feature development ]]></title><description><![CDATA[This blog discusses the technical details of how we built Shepherd and how we are expanding the capabilities of Chronon to meet Stripe’s scale.]]></description><link>https://stripe.dev/blog/shepherd-how-stripe-adapted-chronon-to-scale-ml-feature-development</link><guid isPermaLink="true">https://stripe.dev/blog/shepherd-how-stripe-adapted-chronon-to-scale-ml-feature-development</guid><dc:creator><![CDATA[Ben Mears]]></dc:creator><pubDate>Mon, 15 Apr 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[Ledger: Stripe’s system for tracking and validating money movement ]]></title><description><![CDATA[Technical details on how Stripe built Ledger, a state-of-the-art money movement tracking system, including how teams at Stripe interact with the data quality metrics that underlie our payment processing network.]]></description><link>https://stripe.dev/blog/ledger-stripe-system-for-tracking-and-validating-money-movement</link><guid isPermaLink="true">https://stripe.dev/blog/ledger-stripe-system-for-tracking-and-validating-money-movement</guid><dc:creator><![CDATA[Ilya Ganelin]]></dc:creator><pubDate>Fri, 16 Feb 2024 00:00:00 GMT</pubDate></item><item><title><![CDATA[How we built it: Stripe Radar]]></title><description><![CDATA[What makes Radar, Stripe’s fraud prevention solution, so powerful? Here are some of the key decisions made—and lessons learned—in the years it has taken to build it.]]></description><link>https://stripe.dev/blog/how-we-built-it-stripe-radar</link><guid isPermaLink="true">https://stripe.dev/blog/how-we-built-it-stripe-radar</guid><dc:creator><![CDATA[Ryan Drapeau]]></dc:creator><pubDate>Wed, 29 Mar 2023 00:00:00 GMT</pubDate></item><item><title><![CDATA[How Stripe builds interactive docs with Markdoc]]></title><description><![CDATA[Markdoc delivers a good user experience without compromising the authoring experience. It enables writers to express interactivity and simple page logic without mixing code and content.]]></description><link>https://stripe.dev/blog/markdoc</link><guid isPermaLink="true">https://stripe.dev/blog/markdoc</guid><dc:creator><![CDATA[Ryan Paul]]></dc:creator><pubDate>Tue, 13 Sep 2022 00:00:00 GMT</pubDate></item><item><title><![CDATA[Migrating millions of lines of code to TypeScript]]></title><description><![CDATA[On Sunday, March 6, we migrated we converted more than 3.7 million lines of code with a single pull request. The next day, hundreds of engineers came in to start writing TypeScript for their projects.]]></description><link>https://stripe.dev/blog/migrating-to-typescript</link><guid isPermaLink="true">https://stripe.dev/blog/migrating-to-typescript</guid><dc:creator><![CDATA[Andrew Lunny]]></dc:creator><pubDate>Fri, 20 May 2022 00:00:00 GMT</pubDate></item><item><title><![CDATA[Fast builds, secure builds. Choose two]]></title><description><![CDATA[Stripe's continuous integration system is responsible for orchestrating build pipelines and executing tens of thousands of test suites. To meet our exceptionally high security bar, we lean on a combination of open-source tech and novel engineering.]]></description><link>https://stripe.dev/blog/fast-secure-builds-choose-two</link><guid isPermaLink="true">https://stripe.dev/blog/fast-secure-builds-choose-two</guid><dc:creator><![CDATA[Sushain Cherivirala]]></dc:creator><pubDate>Wed, 04 May 2022 00:00:00 GMT</pubDate></item><item><title><![CDATA[Sorbet: Stripe’s type checker for Ruby]]></title><description><![CDATA[Stripe uses Sorbet to type check our 15 million lines of Ruby code, making engineers more productive. Here's why we love Sorbet.]]></description><link>https://stripe.dev/blog/sorbet-stripes-type-checker-for-ruby</link><guid isPermaLink="true">https://stripe.dev/blog/sorbet-stripes-type-checker-for-ruby</guid><dc:creator><![CDATA[Jake Zimmerman]]></dc:creator><pubDate>Mon, 28 Mar 2022 00:00:00 GMT</pubDate></item><item><title><![CDATA[Stripe’s payments APIs: The first 10 years]]></title><description><![CDATA[Abstracting away the complexity of payments has driven the evolution of our APIs over the last decade. Learn more about Stripe payments APIs here.]]></description><link>https://stripe.dev/blog/payment-api-design</link><guid isPermaLink="true">https://stripe.dev/blog/payment-api-design</guid><dc:creator><![CDATA[Michelle Bu]]></dc:creator><pubDate>Tue, 15 Dec 2020 00:00:00 GMT</pubDate></item></channel></rss>