PayPal Account Updater Subscription Connector

by rishabh17081
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Integrates with PayPal's Account Updater service, allowing merchants to subscribe payment cards for automatic updates, retrieve subscription details, and process webhook notifications to maintain fresh payment card information in e-commerce systems.

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

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

特征

  • 订阅 PayPal 帐户更新服务中的支付卡
  • 检索订阅详细信息
  • 处理卡片更新的 Webhook 通知
  • 使用最新的卡信息更新您的商家数据库

安装

# 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

提供与 PayPal 帐户更新服务的集成,使商家能够通过订阅管理和 webhook 通知在其电子商务系统中维护最新的支付卡信息。

  1. Features
    1. Installation
      1. Usage
        1. Running the MCP Server
        2. Using with Claude
      2. Available Tools
        1. getFreshCardsSolve
        2. create_subscription
        3. get_subscription
        4. subscribe_merchant_to_paypal_au_service
        5. setup_webhook_events_in_merchant_code_base
      3. Webhook Integration
        1. Environment Variables
          1. License
            ID: 0hbky344qm