Integrations
PayPal's agent toolkit supports OpenAI’s Agents SDK , Vercel’s AI SDK, and Model Context Protocol (MCP) . It works with LLM providers that support function calling and is compatible with TypeScript and Python.
Set up your environment
To prepare for an integration, set up your environment first.
Download and install Node.js version 18 or later from the official Node.js website.
Run the command
npm install @paypal/agent-toolkit
to install the agent toolkit, or download the package from the GitHub repo .
You'll also need your PayPal account's client ID and secret from PayPal Developer Dashboard to configure this library.
Set up an integration
See the corresponding topic for your AI platform in this guide.
For information about setting up the front end for testing any of these integrations, see the agent toolkit quickstart guide .
Complete the following steps to integrate PayPal's agent toolkit with OpenAI's Agents SDK. The agent toolkit works with Agents SDK, whichpasses it as a list of tools.
Import PayPal’s agent toolkit into your code.
Update your clientId
and clientSecret
with the values from PayPal Developer Dashboard.
You can use the agent toolkit's functions and other tools as your integration requires.
Test your integration.
Was this helpful?