Skip to main content
Glama
rishabh17081

PayPal Account Updater Subscription Connector

by rishabh17081

用于 MCP 的 PayPal 帐户更新程序订阅连接器

此 MCP(模型上下文协议)连接器提供与 PayPal 的帐户更新程序服务集成的工具,有助于在您的电子商务系统中维护最新的支付卡信息。

特征

  • 订阅 PayPal 帐户更新服务中的支付卡

  • 检索订阅详细信息

  • 处理卡片更新的 Webhook 通知

  • 使用最新的卡信息更新您的商家数据库

Related MCP server: PayPal MCP Server

安装

# Clone the repository
git clone https://github.com/rishabh17081/paypal-au-subscription-connector.git

# Install dependencies
pip install fastmcp requests

用法

运行 MCP 服务器

# Set environment variables
export PAYPAL_CLIENT_ID="your_client_id"
export PAYPAL_CLIENT_SECRET="your_client_secret"
export PAYPAL_ENVIRONMENT="SANDBOX"  # or "LIVE" or "MOCKDB"

# Run the MCP server
python -m fastmcp run paypal_au_subscription_mcp.py

与 Claude 一起使用

将 MCP 服务器添加到您的 Claude 配置中:

{
  "mcpServers": {
    "paypal-au": {
      "command": "python",
      "args": ["-m", "fastmcp", "run", "/path/to/paypal_au_subscription_mcp.py"],
      "env": {
        "PAYPAL_CLIENT_ID": "your_client_id",
        "PAYPAL_CLIENT_SECRET": "your_client_secret",
        "PAYPAL_ENVIRONMENT": "SANDBOX"
      }
    }
  }
}

可用工具

获取新鲜卡片解决

提供有关 PayPal 帐户更新程序作为卡新鲜度管理解决方案的信息。

创建订阅

在 PayPal 中创建帐户状态订阅。

create_subscription(pan="4111111111111111", expiry_date="2025-12")

获取订阅

获取 PayPal 中帐户状态订阅的详细信息。

get_subscription(subscription_id="SUB-1234567890")

订阅商家到 PayPal 服务

提供商户卡订阅PayPal AU服务的说明。

setup_webhook_events_in_merchant_code_base

在商家的代码库中设置 webhook 事件处理代码。

setup_webhook_events_in_merchant_code_base(url="/path/to/merchant/codebase")

Webhook 集成

要接收卡片更新通知,请在您的应用程序中设置一个 Webhook 端点,用于监听 PayPal 的卡片更新事件。连接器包含用于实现此 Webhook 的示例代码。

环境变量

  • PAYPAL_CLIENT_ID :您的 PayPal API 客户端 ID

  • PAYPAL_CLIENT_SECRET :您的 PayPal API 客户端密钥

  • PAYPAL_ENVIRONMENT :要使用的环境(“SANDBOX”、“LIVE”或“MOCKDB”)

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rishabh17081/paypal-au-subscription-connector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server