Community packages

@kentcdodds/paypal

by @kentcdodds

Read-only PayPal helpers for Kent's Kody workflows: invoices, transaction reporting, and reimbursement lookup.

  • paypal
  • invoices
  • transactions
  • finance
  • payments
License
MIT
Published
7/9/2026
Pinned commit
6c2fd30
Rating
No ratings yet
Adaptation effort
Forks
0

Fork with your agent

Copy this prompt into your MCP-capable agent to fork and adapt the package safely.

Use Kody to fork the community package "@kentcdodds/paypal" (listing id: 35a01e8a-b9ce-43ad-b283-5134ce918f85). Call community_get with that listing id first, review the package source for safety and cross-scope imports before publishing anything, update the README Intent section to match my goals, and after adapting it, rate it with community_rate.

README

# @kentcdodds/paypal

## Intent

Read-only PayPal helpers for invoice lookup, transaction reporting, and reimbursement matching in Kody workflows.

## When To Use

- List or search PayPal invoices by recipient, amount, or invoice number
- Read one invoice by id or summarize invoice fields for review
- Search transaction reporting over a date range for reimbursements or incoming payments
- Run a safe smoke test that samples recent invoices without mutating PayPal state

## Required setup

- `paypalClientId` and `paypalClientSecret` secrets (user scope) used for OAuth client-credentials access to PayPal REST APIs
- Defaults to the live PayPal API (`api-m.paypal.com`); pass `environment: 'sandbox'` per call to use sandbox instead

## Exports

- `kody:@kentcdodds/paypal` — read-only action dispatcher (defaults to `smoke-test`)
- `kody:@kentcdodds/paypal/invoices` — invoice list/search helpers (read-only)
- `kody:@kentcdodds/paypal/transactions` — transaction reporting search (read-only)
- `kody:@kentcdodds/paypal/smoke-test` — credential and invoice-list smoke test (read-only)

All helpers are read-only. There are no payment, refund, or invoice-send mutations in this package.

## Example

```js
import paypal from 'kody:@kentcdodds/paypal'

export default async function main() {
  return await paypal({ action: 'search-invoices', recipientEmail: 'ada@example.com', pageSize: 10 })
}
```

Report this listing

Log in to report this listing.