test-accounts

test-accounts is a command for coding agents from paypal/AI-Toolkit. It costs 11 tokens per session (990 once invoked), scanned A, original, Apache-2.0.

A reference for testing PayPal payments in a sandbox, which is a separate practice environment that does not process real money.

In plain words
What is it for?
It helps developers create test accounts, obtain a sandbox access token, and simulate successful and failed PayPal payment scenarios.
Why use it?
It reduces guesswork when setting up buyer and seller test accounts or reproducing payment outcomes such as declines, disputes, and insufficient funds.

Command

Part of the paypal plugin — 2 skills, 5 commands, 1 MCP server shipped together

Install

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.

agentmods
npx agentmods add commands/paypal/ai-toolkit/test-accounts
Clone the repo
git clone --depth 1 https://github.com/paypal/AI-Toolkit

Or install paypal, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 1 MCP server.

Wrote 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.

agentmods badge for test-accounts

README.md
[![agentmods](https://agentmods.dev/badge/commands/paypal/ai-toolkit/test-accounts.svg)](https://agentmods.dev/commands/paypal/ai-toolkit/test-accounts)
Your own site
<a href="https://agentmods.dev/commands/paypal/ai-toolkit/test-accounts"><img src="https://agentmods.dev/badge/commands/paypal/ai-toolkit/test-accounts.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 990 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.00990
Opus 5 $0.00005 $0.00495
Sonnet 5 $0.00002 $0.00198
Haiku 4.5 $0.00001 $0.00099

Measured 4d ago against content hash c42357e56281, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-accounts scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://api-m.sandbox.paypal.com/v1/oauth2/token \
commands/test-accounts.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

If "$ARGUMENTS" is set, show only the section(s) relevant to that scenario plus the Key Gotchas. If empty, show all sections.

Sandbox Buyer & Seller Accounts

Create test accounts at https://developer.paypal.com/dashboard/accounts. Two types:

Type Purpose
Personal (Buyer) Approves payments, Venmo, Pay Later, opens disputes
Business (Seller/Merchant) Receives payments, creates orders, invoices, subscriptions

Sandbox base URL: https://api-m.sandbox.paypal.com

Quick Access Token (Sandbox)

curl -X POST https://api-m.sandbox.paypal.com/v1/oauth2/token \
  -u "$PAYPAL_CLIENT_ID:$PAYPAL_CLIENT_SECRET" \
  -d "grant_type=client_credentials"

Test Scenarios

Successful Payment

Use any sandbox buyer account with sufficient balance. Amount: any normal value.

Declined Payment

To simulate declines, use sandbox buyer accounts with specific wallet configurations or use these trigger amounts (USD):

Trigger How to simulate
Instrument declined Use a sandbox buyer card set to "Declined" in the sandbox account wallet
Insufficient funds Set the sandbox buyer balance below the order amount
Risk decline Use amounts configured in your sandbox to trigger TRANSACTION_REFUSED

BNPL / Pay Later

  • Use order amounts between $30–$1,500 (Pay in 4) or $199–$10,000 (Pay Monthly)
  • The Pay Later option appears in the sandbox buyer approval window
  • Sandbox does not simulate installment billing — only the initial capture is tested

Pay with Venmo

  • Venmo sandbox does not invoke the real Venmo app
  • During sandbox approval, select "Venmo" in the funding source picker
  • Confirm payment_source.venmo in the capture response

Subscriptions

  1. Create product → create plan (must be ACTIVE) → create subscription
  2. Approve using a sandbox buyer account
  3. Sandbox auto-processes renewal cycles — accelerate via the Developer Dashboard
  4. Use the Webhooks Simulator to test BILLING.SUBSCRIPTION.PAYMENT.FAILED and other lifecycle events

Read the full file on GitHub · 104 lines

Changes

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.

  1. 4d ago First seen · 104 lines · 11 tokens per session scan A c42357e56281

Subscribe to this mod's changes

test-accounts is a command published in the GitHub repository paypal/AI-Toolkit (12 stars, last pushed 16d ago), licensed Apache-2.0. It adds 11 tokens to every session and 990 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories