doctor
Diagnose PayPal integration issues by scanning your codebase, environment, and API usage patterns — then offer targeted fixes
Explain a PayPal API error code or message and provide actionable solutions
> /plugin marketplace add paypal/AI-Toolkit > /plugin install paypal@paypal-ai-toolkit
How it fires
How this command gets triggered: by you, by Claude, or both.
/explain-errorContext preview
What this command does when you run it.
Explain a PayPal API error code or message and provide actionable solutions
description: Explain a PayPal API error code or message and provide actionable solutions argument-hint: <error_code or error_message> allowed-tools: Read, Grep
If "$ARGUMENTS" is empty, respond only with: "Please provide a PayPal error code or message. Example: `/paypal:explain-error INSTRUMENT_DECLINED`" and stop.
If "$ARGUMENTS" does not match any known PayPal error code or message pattern, respond with: "Unknown error code or message: `$ARGUMENTS`. This may be a typo, a third-party error, or a new PayPal error not yet in this reference. Check https://developer.paypal.com/api/rest/reference/orders/v2/errors/ for the full list." Then do your best to explain what the error string suggests based on its name, and stop — do not fabricate retry behavior or related errors.
Otherwise, explain the PayPal error "$ARGUMENTS". Provide:
1. **What it means** — plain-language explanation 2. **Common causes** — most likely reasons this occurs 3. **How to fix it** — specific, actionable steps 4. **Code example** — detect the user's programming language by scanning any open files with Read/Grep; default to Node.js if no language is found. Show proper error handling including how to catch the error, display a user-friendly message, and whether to retry. 5. **Related errors** — only list errors from the Key error reference below that are meaningfully related (same HTTP status, same flow, or must be handled together). Do not suggest errors outside this list.
Key error reference:
Always include the full error response body and `debug_id` when contacting PayPal support at https://developer.paypal.com/support/.
A Claude Code plugin that integrates PayPal's APIs and MCP server into your development workflow. Get AI-assisted help with PayPal payments, subscriptions, invoices, disputes, and more — directly in your editor.
Repo: paypal/AI-Toolkit
Diagnose PayPal integration issues by scanning your codebase, environment, and API usage patterns — then offer targeted fixes
Show PayPal sandbox setup, credentials, and developer dashboard resources
Configure PayPal plugin — verify credentials, test MCP server connection, and show active environment
Show PayPal sandbox test accounts and scenario-specific testing tips