---
title: "Stripe’s Payment Method Factory: Orchestrating agents for repeated, custom integrations"
description: "Stripe offers over 125 different payment methods globally, each requiring integrations that previously took up to six months because teams started from scratch. They hypothesized that reusable prompts with hardening could reduce effort, and a bake-off showed vanilla Claude Code took 20 days versus 4 days with their prompts. The resulting factory has created three new payment method integrations and migrated ten existing ones to a modern stack, reducing timelines from six months to two to six weeks. The factory also uses code-based orchestration, continuous knowledge loops where agents suggest prompt improvements, and agents testing their own code against sandbox environments. The factory’s approach has since been extended to Stripe’s tax and verification teams for building their own connectors."
---

# Stripe’s Payment Method Factory: Orchestrating agents for repeated, custom integrations

[Stripe](https://yomu.fyi/company/stripe) · David Dunne · Sep 30, 2026

**Type:** Problem & solution

## Summary

Stripe offers over 125 different payment methods globally, each requiring integrations that previously took up to six months because teams started from scratch. They hypothesized that reusable prompts with hardening could reduce effort, and a bake-off showed vanilla Claude Code took 20 days versus 4 days with their prompts. The resulting factory has created three new payment method integrations and migrated ten existing ones to a modern stack, reducing timelines from six months to two to six weeks. The factory also uses code-based orchestration, continuous knowledge loops where agents suggest prompt improvements, and agents testing their own code against sandbox environments. The factory’s approach has since been extended to Stripe’s tax and verification teams for building their own connectors.

## Context

Stripe offers over 125 payment methods globally, each with unique APIs. Previously, integrating a new method required six months of effort as teams started from scratch each time, with little reusable tooling.

## Approach / What changed

The Payment Method Factory uses over 100 reusable one-shot prompts hardened by observer agents that review transcripts of implementation runs. Orchestration is handled by code rather than an LLM, dividing integrations into discrete steps each linked to a prompt. A continuous knowledge loop collects learning logs, decision logs, and review comments to update prompts when systems change. Agents also test their own code by running against provider sandboxes, capturing API responses as immutable contracts.

## Takeaways

- Reusable prompts hardened by observer agents can reduce payment method integration time from six months to two to six weeks.
- Code-based orchestration is more predictable and reliable than an LLM orchestrator for coordinating multi-step agent workflows.
- Agents can boost reviewer confidence by autonomously testing their code against sandboxes and generating immutable API contracts.

## FAQ

### How did Stripe reduce integration time from six months to weeks?

By building a Payment Method Factory with over 100 reusable prompts hardened by observer agents and orchestrated by code, enabling one-shot completions and continuous knowledge loops to keep prompts current.

### How do agents in the factory test their own code?

Agents run test payments against provider sandboxes, check requests, responses, state changes, and events, then snapshot API responses to create immutable contracts used across the stack.

### Why is code-based orchestration preferred over an LLM orchestrator?

An LLM orchestrator was expensive, slow, and sometimes tried to implement steps itself, eating up its context window. Code-based orchestration is more predictable and reliable for coordinating subagents.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [Automation](https://yomu.fyi/topic/automation), [Payments](https://yomu.fyi/topic/payments), [Prompt Engineering](https://yomu.fyi/topic/prompt-engineering), [Stripe](https://yomu.fyi/topic/stripe)

- Source: [Stripe](https://stripe.dev/blog/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations)
- Source URL: https://stripe.dev/blog/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations
- Ingested by Yomu: 2026-10-01T18:00:11.564Z

[Read original post](https://stripe.dev/blog/stripes-payment-method-factory-orchestrating-agents-for-repeated-custom-integrations)
