MetorialDocs

Set up PayPal in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in method

MethodTypeWhat a person provides
Client CredentialsCustom credentialsclientId, 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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect PayPal

In the portal

Open PayPal in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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