Skip to main content
Glama
PayPal Account Updater Subscription Connector

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”)

执照

麻省理工学院

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides comprehensive integration with PayPal's APIs, enabling seamless interaction with payment processing, invoicing, subscription management, and business operations through a standardized interface.
      7
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A server that provides integration with PayPal's APIs, enabling seamless interaction with payment processing, invoicing, subscription management, and business operations through a standardized interface.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables integration with PayPal APIs for managing invoices, payments, disputes, subscriptions, and more through natural language.
      13
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Alexa+ and other MCP clients to set household budgets, discover real products and local businesses, negotiate merchant agents, approve a plan, and manage PayPal sandbox payment holds, captures, voids, and refunds through an account-linked endpoint.
      MIT