PayPal AI Toolkit is a plugin that connects AI coding agents with PayPal APIs and sandbox MCP servers, giving them PayPal-specific guidance and tools. It helps developers build and work with payment, subscription, invoice, and dispute integrations in Claude Code, OpenAI Codex, and other compatible agents. The catalogue entries are its commands, skills, plugins, and MCP integration.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add paypal/AI-Toolkit --skill paypal-best-practicesgit clone --depth 1 https://github.com/paypal/AI-ToolkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/paypal/ai-toolkit/paypal-best-practices)<a href="https://agentmods.dev/skills/paypal/ai-toolkit/paypal-best-practices"><img src="https://agentmods.dev/badge/skills/paypal/ai-toolkit/paypal-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/paypal/ai-toolkit/paypal-best-practices"><img src="https://agentmods.dev/badge/skills/paypal/ai-toolkit/paypal-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.02129 |
| Opus 5.5 | $0.00043 | $0.00852 |
| Sonnet 5.5 | $0.00021 | $0.00426 |
| Haiku 4.5 | $0.00011 | $0.00213 |
Grade A, and why
paypal-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PayPal Best Practices
Before answering, read the relevant reference file from the table below. The reference files contain current documentation URLs, country availability, and verified code examples.
Integration Routing
| Developer intent | Reference file |
|---|---|
| Accept payments, add PayPal button, checkout flow, Orders API, payment link, payment links, pay link, React PayPal, @paypal/react-paypal-js, authorize vs capture, deferred capture, donate button, donations | references/checkout.md (v5) or references/js-sdk-v6.md (v6) |
| Advanced Card Fields, Apple Pay, Google Pay, APMs, Expanded Checkout, bank redirect, iDEAL, Bancontact, BLIK, Przelewy24, Pay upon Invoice, Ratepay, domain association, regional payment methods | references/expanded-checkout.md (v5) or references/js-sdk-v6.md (v6) |
| Add Venmo, Venmo button, Venmo eligibility, isEligible, eligibility check, Venmo app | references/venmo.md (v5) or references/js-sdk-v6.md (v6) |
| Pay Later, installments, BNPL messaging, Pay in 4, financing, BNPL banner, Pay Later banner, Pay Later eligibility | references/bnpl.md (v5) or references/js-sdk-v6.md (v6) |
| Recurring billing, subscriptions, plan management, free trial, trial period, upgrade plan, downgrade plan, plan revision | references/subscriptions.md (v5) or references/js-sdk-v6.md (v6) |
| Disputes, chargebacks, refunds, evidence, provide evidence, dispute lifecycle, dispute stage, INQUIRY, CLAIM | references/disputes-refunds.md |
| Send money, batch payouts, seller payments, Venmo payout, 1099, tax reporting, prepaid cards | references/payouts.md |
| Invoices, billing, send invoice, invoice reminder, partial payment, line items | references/invoicing.md |
| OAuth, access tokens, credentials, idempotency, token caching, token refresh, idempotency key, PayPal-Request-Id | references/authentication.md |
| Webhook verification, event handling, signature check, webhook simulator, test webhooks, event types, PAYMENT.CAPTURE | references/webhooks.md |
| Test the full webhook lifecycle, subscribe a webhook URL, register a webhook, simulate-event API, webhooks-events history, resend a webhook event, delete/manage a webhook subscription, ngrok for webhooks, local webhook listener | references/webhook-sandbox.md |
Fastlane, accelerated guest checkout, auto-fill, prefill, single-use token, Braintree Fastlane, braintree-web, BraintreeGateway, gateway.clientToken.generate, braintree.fastlane.create, paymentMethodNonce |
Pick exactly one — three variants, do not mix. Braintree gateway (braintree-web, BraintreeGateway, paymentMethodNonce): references/fastlane-braintree.md. PayPal-direct v5 (paypal.Fastlane({}), data-sdk-client-token): references/fastlane.md. PayPal-direct v6 (sdkInstance.createFastlane()): references/js-sdk-v6.md. If unclear which variant, ask before generating code. |
| 3D Secure, liability shift, SCA, PSD2, Strong Customer Authentication, enrollment status, authentication status | references/3d-secure.md |
| AI shopping agents, Store Sync, Agent Ready, agentic commerce, ChatGPT, product discovery, delegated payment token | references/agentic-commerce.md |
| MCP server tools, tool inventory, product catalog, merchant insights, reporting | references/mcp-tools.md |
| JS SDK v6, v6 Web SDK, createInstance, payment sessions, web components, migrate from v5, card fields, vault, save card, save payment method, vaulting, CSP, Content Security Policy | references/js-sdk-v6.md |
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/3d-secure.md 2.2 KB
- references/agentic-commerce.md 1.8 KB
- references/authentication.md 1.9 KB
- references/bnpl.md 2.5 KB
- references/checkout.md 4.4 KB
- references/disputes-refunds.md 2.1 KB
- references/expanded-checkout.md 3.2 KB
- references/fastlane-braintree.md 20 KB
- references/fastlane.md 17 KB
- references/invoicing.md 1.5 KB
- references/js-sdk-v6.md 29 KB
- references/mcp-tools.md 1.6 KB
- references/payouts.md 1.7 KB
- references/subscriptions.md 2.0 KB
- references/venmo.md 1.9 KB
- references/webhook-sandbox.md 37 KB
- references/webhooks.md 3.4 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago Changed · +4 lines feb4c9771d17
- 18d ago Changed 87419665a9d3
- 1mo ago Changed 8e61db895cf6
- 1mo ago First seen · 97 lines · 107 tokens per session scan A 09dc881c8ee7
paypal-best-practices is a skill published in the GitHub repository paypal/AI-Toolkit (35 stars, last pushed 10d ago), licensed Apache-2.0. It adds 107 tokens to every session and 2,129 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
laravel-stripe-connect
Use when implementing multi-vendor marketplace payments, seller onboarding, commissions, payouts, or split payments with Stripe Connect.
ecommerce-seo
E-commerce SEO audit for online stores (WooCommerce, Shopify, Magento, custom). Covers category / product listing pages (PLP), product detail pages (PDP), faceted navigation and its crawl-budget and duplicate-content traps, pagination, canonicals for variants and filters, out-of-stock / discontinued products, internal…
paid-ads-amazon
Plan and review Amazon Ads with margin-aware ACoS, product, and search-term guardrails. Use for Amazon advertising, Sponsored Products, Sponsored Brands, Sponsored Display, ASIN targeting, Amazon ACoS, or Amazon Ads performance exports.
stripe-payments
Add Stripe payments to a web app — Checkout Sessions, Payment Intents, subscriptions, webhooks, customer portal, and pricing pages. Covers the decision of which Stripe API to use, produces working integration code, and handles webhook verification. No MCP server needed — uses Stripe npm package directly. Triggers…
fundraising-and-investor-relations
Raises capital and manages the relationship afterward — deciding how much and why, understanding what dilution and preferences actually cost, running a process with real competitive tension, preparing for diligence before it starts, and reporting to investors and a board in a way that keeps support when results are…
chief-financial-officer
Owns the financial position: planning, budgeting, forecasting, unit economics, cash, and the numbers the business is run and reported on. Use this to build or challenge a budget, model a decision's financial consequence, assess unit economics or runway, evaluate an investment or spend request, set financial controls…