← Public packages
@kentcdodds/paypal
PayPal helpers for invoices, sending invoices, transactions, and reimbursements.
README.md
37 lines · 1.5 KB · Markdown@kentcdodds/paypal
Intent
PayPal helpers for invoice lookup, creating and sending invoices, transaction reporting, and reimbursement matching in Kody workflows.
What it does
- List, get, search, and summarize PayPal invoices
- Create a draft invoice, or create-and-send (
send: true) - Send an existing draft invoice to the recipient
- Search transaction reporting over a date range (chunked when longer than 31 days) for reimbursements or incoming payments
- Read-only smoke test that samples recent invoices without mutating PayPal
Prerequisites / setup
- Save user secrets
paypalClientIdandpaypalClientSecret(OAuth client-credentials viaoauthClientCredentials). Do not paste values in chat. - Approve hosts
api-m.paypal.com(live) andapi-m.sandbox.paypal.comif you use sandbox. - Defaults to live PayPal; pass
environment: 'sandbox'per call for sandbox. - Approve this package to use those secrets if prompted.
- Agents: see
AGENTS.mdfor import paths and smoke checks.
OpenAPI surface (scaffolded; package injects a fresh bearer per call):
invoicing_v2 (invoices_list|get|search|create|send) and
reporting_transactions_v1 (search_get, balances_get).
Done when
paypalClientId/paypalClientSecretare saved; PayPal hosts and package secret access are approved- Read-only smoke test returns
ok: truewith a small invoice sample - Create/send are only run after explicit user approval (they mutate PayPal)