> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up PayPal in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/paypal
Last updated: 2026-11-24

Share PayPal with your team in Claude, ChatGPT and Cursor through Metorial: client credentials sign-in, 16 tools (4 read-only).

---

To give your team PayPal in Claude, ChatGPT, Cursor and other AI clients, an admin shares the PayPal integration in a Metorial portal, and each person connects with client credentials. Agents can process payments, manage orders, and handle financial transactions through PayPal. The integration has 16 tools, 4 read-only and 12 write, plus 6 triggers.

**What you will learn**

- How an admin shares PayPal in a portal and how each person connects
- What PayPal asks for when you connect, and where to find it
- How to keep the 4 read-only tools and reject the other 12

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- Client credentials from PayPal for each person, or one set for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Client Credentials** | Custom credentials | `clientId`, `clientSecret` and `environment` |

### Client Credentials

To connect, a person enters these values:

- `clientId`: PayPal REST API Client ID
- `clientSecret`: PayPal REST API Client Secret
- `environment` (optional): PayPal environment One of "sandbox", "production".

### Setup settings

Setup also asks for:

- `environment` (optional): PayPal environment to use. Use sandbox for testing. One of "sandbox", "production".

## Admin: share PayPal in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose PayPal. For how members connect, choose **Each person connects** so everyone enters their own client credentials, or **Shared connection** to enter the client credentials once for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from PayPal.

4. **Choose who gets it**

   Add the access groups that should see PayPal. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user PayPal integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search paypal
```

## Employee: connect PayPal

### In the portal

1. **Open PayPal in the catalog**

   Sign in to your portal and open PayPal. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your client credentials (clientId and clientSecret).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search paypal
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your PayPal connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list paypal
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 4 read-only tools, such as `get_order` and `get_payout`, and lose the 12 write tools, such as `send_payout` or `add_tracking`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list paypal
metorial tools <integration-id>
metorial call <integration-id> list_invoices -d '{}'
```

`metorial tools` lists the 16 tools, minus any you rejected. `list_invoices` takes no input. It lists PayPal invoices with optional pagination.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (4)

- `get_order`: Retrieve details of a PayPal order by its ID. Needs `orderId`.
- `get_payout`: Retrieve the status and details of a PayPal batch payout or individual payout item.
- `search_transactions`: Search PayPal transaction history by date range, status, amount, and other filters. Needs `startDate` and `endDate`.
- `list_invoices`: List PayPal invoices with optional pagination.

### Write tools (12)

- `add_tracking`: Add shipment tracking information to a captured PayPal payment. Needs `captureId`, `trackingNumber` and `carrier`.
- `manage_product`: Create, retrieve, or list PayPal catalog products. Needs `action`.
- `send_payout`: Send batch payouts to one or more recipients via PayPal email, phone, or PayPal ID. Needs `senderBatchId` and `recipients`.
- `capture_order`: Capture payment for an approved PayPal order. Needs `orderId`.
- `manage_payment`: Manage payment authorizations, captures, and refunds. Needs `action` and `resourceId`.
- `create_subscription`: Create a new PayPal subscription for a billing plan. Needs `planId`.
- `create_invoice`: Create and optionally send a PayPal invoice. Needs `currencyCode`, `recipientEmail` and `items`.
- `manage_invoice`: Manage existing PayPal invoices. Needs `action` and `invoiceId`.
- `create_order`: Create a new PayPal checkout order. Needs `intent` and `purchaseUnits`.
- `manage_subscription`: Manage an existing PayPal subscription. Needs `action`.
- `manage_billing_plan`: Create, retrieve, list, activate, or deactivate PayPal billing plans. Needs `action`.
- `manage_dispute`: Manage PayPal customer disputes (chargebacks, claims, inquiries). Needs `action`.

## Triggers

PayPal has 6 triggers, which fire on events in PayPal:

- `payment_events`: Triggers on payment lifecycle events including authorizations, captures, refunds, and reversals.
- `payout_events`: Triggers on payout batch and item events including processing, success, denied, blocked, cancelled, held, and more.
- `invoice_events`: Triggers on invoice lifecycle events: created, updated, scheduled, paid, refunded, and cancelled.
- `dispute_events`: Triggers when customer disputes are created, updated, or resolved.
- `order_events`: Triggers on checkout order lifecycle events: approved, completed, processed, and payment approval reversed.
- `subscription_events`: Triggers on subscription lifecycle events including creation, activation, cancellation, suspension, payment failures, and plan/product changes.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use PayPal there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [PayPal on metorial.com](https://metorial.com/integrations/paypal): the integration overview