Four experiments on PayPal API integration and migration tasks, measuring what happens when AI coding agents get API knowledge through Context Plugins vs relying on web search.
Same task, same IDE, same model — run twice. Once with the agent using only web search, once with Context Plugins providing live API source, models, and controllers.
Mature open-source e-commerce platform. Plugin architecture, decade of production use, strict backward-compatibility expectations.
Reference architecture from the .NET team. Services-based design, .NET Aspire orchestration, clean separation of concerns.
.NET is one of the most common enterprise stacks for payment and e-commerce workloads. A versioned payments API with multi-step OAuth, multiple controller dependencies, and strict version semantics represents the kind of integration AI consistently mishandles — a rigorous test case, not a friendly one.
The failure patterns observed here emerge whenever an agent integrates any versioned API without the latest context. You can test this yourself with PayPal, Twilio, Slack, and others directly in your IDE.
Average code quality scores across all 4 experiments, rated 1–5.
Replace hand-rolled HttpClient calls with the official SDK without breaking OAuth, order creation, capture, refund, or void flows.
OAuthAuthorizationController didn't exist in the SDKList<T> became ListWith the existing PayPal plugin removed, integrate PayPal as a payment method where the buyer approves first, and then the payment is captured on order confirmation.
Migrate a direct HTTP implementation to the official SDK in a modern .NET 9 service-based application.
Add a two-part payment flow — buyer approves at checkout, payment captured after stock confirmation — with no prior PayPal integration.
?paid=1 query param triggers false approvalsAveraged across both codebases and both scenario types — legacy migration and new integration.
The evidence is in the data. If you're an API provider and want to deploy authoritative context for your developers, we'll set it up with you.