프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요 로그인

PayGate USDT Payment Gateway MCP

제작자: EzequielLech버전 2.7.0i★ 0i클라우드에서 실행공식 사이트 ↗

설치 방법

할 수 있는 일

8-tool non-custodial 6-chain USDT/USDC payment gateway: @mcp_tool_paywall, invoice CRUD & x402.

제작자가 쓴 원문

  • 연결 방식 클라우드에서 실행
  • 계정 또는 키 키 필요 없음
  • 분류 온라인 쇼핑몰 및 결제

이 순위인 이유

목록은 사용 점수(100점 만점)로 정렬되며 구성은 다음과 같습니다

인기0/80GitHub 별 또는 주간 다운로드: 큰 쪽 60, 작은 쪽 20
최신성12/1230일 안에 릴리스나 코드 변경이 있으면 만점
응답 중8/8마지막 점검 때 클라우드 엔드포인트가 응답
사용 점수20/100

품질: 기본 점검 5/5개 통과(표시만, 정렬에는 안 씀) · 상승세: 데이터 없음 (급상승 탭에서만 사용)

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

한 문장으로 AI에게 설치 맡기기

PayGate USDT Payment Gateway MCP 설치해 줘. https://mcp.popnx.com/i/ezequiellech-paygate-usdt.md 를 따라 하고, 명령을 먼저 보여 주고 내가 승인하면 실행해.

내 컴퓨터에서 작업하는 AI(Claude Code, Cursor 등)에 붙여 넣으세요. 단계를 읽고 명령을 보여 준 뒤 승인을 기다립니다. 키도 가입도 필요 없습니다. · AI가 읽을 전체 내용 보기

검사 5/5 통과 · 내가 묻는 내용은 제작자 서버(chainguard-studio-production.up.railway.app)를 거쳐요 · ✓ 명령 확인 2026년 11월 25일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음 · claude.ai나 데스크톱 앱에서 한 번 설정하면 채팅에서 쓸 수 있어요 · 무료 계정은 1개까지 · Team/Enterprise는 소유자(Owner)가 추가

  1. 이 버튼을 누르면 Claude가 미리 채워진 connector 추가 창을 엽니다

    Claude에 PayGate USDT Payment Gateway MCP 추가 ↗

    이름과 주소가 채워져 있어요. 확인하고 Add를 누르세요 · 로그인하지 않았다면 Claude가 먼저 로그인을 요청해요

    Claude가 찾은 로그인 설정 화면에서 Continue를 누르고 · Authentication은 제작자 안내대로(Sign in now, Sign in when needed, No sign in) 고른 뒤 Add를 누르세요

    버튼이 안 되나요? 직접 입력하기

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    “Add” → “Custom” → “Web”를 누르고 이 2칸 채우기

    여기서 복사해 Claude의 같은 이름 칸에 붙여 넣고 Continue를 누르세요

    Name · 이름PayGate USDT Payment Gateway MCP
    Remote MCP server URL · 주소https://chainguard-studio-production.up.railway.app/paygate/mcp
  2. 채팅에서 켜기

    +ConnectorsPayGate USDT Payment Gateway MCP

  3. 해 보기

    PayGate USDT Payment Gateway MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 PayGate USDT Payment Gateway MCP을 쓰고 있다고 하거나 답에 PayGate USDT Payment Gateway MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT 연결은 요금제에 따라 달라요

전체 MCP: 웹 ChatGPT Business, Enterprise, Edu · Pro: 읽기/가져오기 권한으로 연결, 데이터를 바꾸는 도구는 안 될 수 있어요 · Plus: 공식 문서 미확인, 플러그인 화면에 사용자 지정 MCP 추가 항목이 보이면 시도해 볼 수 있어요 · 웹만

  1. 웹 ChatGPT에서 MCP 추가 페이지 열기

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 이름과 주소 입력

    이름을 넣고 Connection에 주소를 붙여 넣은 뒤 경고에 체크하고 Create as a plugin을 누르세요

    Name · 이름PayGate USDT Payment Gateway MCP
    Connection · 주소https://chainguard-studio-production.up.railway.app/paygate/mcp
  3. 채팅에서 PayGate USDT Payment Gateway MCP 고르기

    새 채팅을 열고 입력 전에 플러그인 목록에서 PayGate USDT Payment Gateway MCP을 고르세요

  4. 해 보기

    PayGate USDT Payment Gateway MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ ChatGPT가 PayGate USDT Payment Gateway MCP을 쓰고 있다고 하거나 답에 PayGate USDT Payment Gateway MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 OpenAI 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Claude Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  2. 이 명령을 붙여 넣고 Enter

    claude mcp add --transport http --scope user paygate-usdt https://chainguard-studio-production.up.railway.app/paygate/mcp
  3. Claude Code에서 /mcp 입력

    PayGate USDT Payment Gateway MCP이 목록에 있고 연결됨으로 보이면 돼요

  4. 해 보기

    PayGate USDT Payment Gateway MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 PayGate USDT Payment Gateway MCP을 쓰고 있다고 하거나 답에 PayGate USDT Payment Gateway MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  2. Cursor에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    PayGate USDT Payment Gateway MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 PayGate USDT Payment Gateway MCP을 쓰고 있다고 하거나 답에 PayGate USDT Payment Gateway MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있어요 · 약 2분

키 필요 없음, 설치 필요 없음

  1. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  2. VS Code에서 AI 채팅을 Agent 모드로 열기

  3. 해 보기

    PayGate USDT Payment Gateway MCP을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 PayGate USDT Payment Gateway MCP을 쓰고 있다고 하거나 답에 PayGate USDT Payment Gateway MCP 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

웹으로 연결하는 앱용 주소

주소https://chainguard-studio-production.up.railway.app/paygate/mcp

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? PayGate USDT Payment Gateway MCP을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

웹으로 연결

Claude Code

claude mcp add --transport http --scope user paygate-usdt https://chainguard-studio-production.up.railway.app/paygate/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "paygate-usdt": {
      "url": "https://chainguard-studio-production.up.railway.app/paygate/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "paygate-usdt": {
      "type": "http",
      "url": "https://chainguard-studio-production.up.railway.app/paygate/mcp"
    }
  }
}

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

레지스트리 이름
io.github.EzequielLech/paygate-usdt
주간 다운로드i
npm/PyPI에 없음
연결 방식
클라우드에서 실행
도구 수
도구 8개 · 가벼움 이 MCP를 연결하면 모든 도구의 이름과 설명이 AI에 전달됩니다(쓰는 것만 불러오는 앱도 있음). 도구가 많을수록 채팅마다 AI가 기억할 수 있는 공간을 더 차지하고 도구를 잘못 고르기 쉬워집니다. 2026년 11월 25일에 서버가 저희 검사기에 보낸 도구 목록으로 셌습니다
전송 방식
streamable-http
최신 버전i
2.7.0
레지스트리 공개i
2026년 11월 26일
코드 마지막 변경i
2026년 11월 25일
마지막 확인
2026년 11월 25일
제작자
EzequielLech
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

인터넷으로 연결하는 앱

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

모든 앱과 장단점 →

할 수 있는 일

도구 이름과 설명은 서버가 2026년 11월 25일에 알려 준 그대로예요. 우리가 아니라 제작자가 쓴 글이고, 일반 텍스트로만 보여 드려요.

  • create_usdt_invoice

    Create a new non-custodial multi-chain USDT/USDC payment invoice and hosted checkout page on Polygon, BSC, Arbitrum, Base, Ethereum, or Solana settling 100% directly to `merchant_wallet` with 0% platform custody. State-changing operation creating a single-use `pending` invoice re

  • get_usdt_invoice

    Retrieve current settlement status, payment metadata, expiration timestamp, and cryptographic SHA-256 receipt for an existing PayGate invoice by `invoice_id`. Read-only, non-destructive lookup (unlimited free calls, no authentication required). Returns JSON with `ok` (boolean), `

  • list_usdt_invoices

    List and filter PayGate USDT/USDC invoices by `merchant_wallet`, settlement `status` (`pending`, `paid`, `expired`), or `customer_ref`. Read-only query returning up to `limit` most recent invoices in reverse chronological order (unlimited free calls, no authentication required).

  • verify_usdt_invoice

    Verify and settle a confirmed on-chain USDT/USDC transaction hash (`tx_hash`) against a PayGate `invoice_id` via live JSON-RPC receipt log inspection. Idempotent state-changing operation (unlimited free calls, anti-replay enforced): confirms recipient address, token contract, and

  • expire_usdt_invoice

    Cancel and expire an unpaid `pending` PayGate invoice by `invoice_id` so it can no longer be settled. Idempotent state-changing operation: transitions `pending` invoices to `expired` while leaving already-`paid` invoices untouched (unlimited free calls). Returns JSON with `ok` (b

  • check_usdt_subscription

    Check whether a customer (`customer_ref`) has an active non-custodial recurring USDT/USDC subscription with `merchant_wallet`, including remaining days, expiration timestamp, and a pre-filled 1-click renewal checkout URL. Read-only lookup (unlimited free calls, early renewals aut

  • verify_onchain_transfer

    Statelessly verify any standalone on-chain USDT or USDC transfer transaction hash (`tx_hash`) via live blockchain JSON-RPC without requiring a pre-created PayGate invoice ID. Read-only RPC receipt inspection across `polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, or `solana` con

  • build_x402_paywall_challenge

    Generate a standards-compliant HTTP 402 (`x402 v2`) payment challenge JSON payload, base64 `PAYMENT-REQUIRED` header, and 1-click PayGate `checkout_url` for monetizing any REST or AI-agent API endpoint in USDT/USDC. Purely read-only deterministic payload builder with zero network

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 26일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 EzequielLech 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 어제

  • ✓ 통과

    라이선스 있음

    MIT 사용

  • ✓ 통과

    엔드포인트 응답

    119ms 만에 응답(HTTP 200)

  • – 해당 없음

    OAuth로 로그인

    로그인 필요 없음

  • ✓ 통과

    도구 설명에 숨겨진 지시 없음

    도구 설명 8개를 읽었고, AI에게 보내는 숨겨진 지시는 없었어요

우리가 확인하는 것 → · JSON

제작자: 재확인 요청 또는 잘못된 정보 신고
제작자용: README에 배지 달기

제작자라면 이 코드를 README에 붙여 넣으세요. 배지는 이 페이지로 연결됩니다.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ezequiellech-paygate-usdt.svg)](https://mcp.popnx.com/en/servers/ezequiellech-paygate-usdt)

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

로그인하고 리뷰 쓰기

온라인 쇼핑몰 및 결제 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 3276개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 3276개 중 99%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 3276개 중 99%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

PayGate USDT Payment Gateway MCP, 안전한가요?

해당하는 기본 점검 5개 중 5개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 어제 변경됐고, 최신 버전(2.7.0)은 오늘 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되므로 원격 MCP를 받는 앱에서도 쓸 수 있어요. 예: 웹 ChatGPT(Business 이상은 전체 MCP, Pro는 읽기 전용).

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Stripe MCP, FlightClaw, Trade It, idealo MCP Server, Marketplace Ad Pros: Amazon Ads & Seller Central

비슷하게 동작하는 다른 것

같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Stripe MCP

MCP server integrating with Stripe - tools for customers, products, payments, and more.

제작자: stripe널리 사용됨★ 2.1천13개월 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · stripe.com

FlightClaw

Search, price-track and book flights from about 300 airlines, paid on a hosted checkout link.

제작자: flightclaw성장 중★ 895일 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · flightclaw.com

Trade It

Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.

제작자: trade-it-inc성장 중★ 6241일 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · tradeit.app

idealo MCP Server

Search products, compare prices and discover deals across 6 European markets with your AI assistant.

제작자: idealo초기★ 296개월 전 업데이트

바로 연결 (URL 있음) · 로그인 필요✓ 서비스 회사 · mcp.idealo.com
비슷한 항목과 비교
이 항목
PayGate USDT Payment Gateway MCP
Stripe MCPFlightClawTrade Itidealo MCP ServerMarketplace Ad Pros: Amazon Ads & Seller Central
실행 위치클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요클라우드에서 동작, 설치 불필요
키 필요아니요아니요아니요아니요아니요아니요
Claude에서 +로 추가아니요예아니요아니요아니요아니요
기본 점검5/54/44/45/54/44/4
라이선스MITMITMITCC0-1.0MITMIT
가격등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음등록 정보에 비용 없음

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

PayGate USDT v2.7 — Non-Custodial Crypto & Stablecoin Payment Gateway (USDT, USDC, ETH, BNB, POL, SOL, BTC), Python & TypeScript SDKs & MCP Server

Monetize any Python or TypeScript/Node.js MCP Server (`@mcp_tool_paywall` / `withMcpToolPaywall`), FastAPI / Express Route (`@require_usdt_payment` / `paygateExpressMiddleware`), SaaS Subscription, or Telegram VIP Group in USDT & USDC across 6 blockchains straight to your own self-custody wallet.

No custodial processor holds your funds. No Stripe / Whop / bank account requirements. No platform percentage cut. Includes 1-Click Multi-Chain & Multi-Asset Switcher (USDT, USDC, plus native ETH, BNB, POL, SOL, and Bitcoin Taproot bc1p...), Zero-Tx-Hash On-Chain Payment Auto-Detection, and a Self-Serve Merchant Revenue Dashboard (`/paygate/merchant`).


Why Builders Choose PayGate USDT Over Custodial Processors

FeaturePayGate USDT v2.7Custodial Gateways / Whop / InviteMember
Settlement Destination100% direct buyer -> your wallet (Phantom, MetaMask, Ledger, Safe, Exchange)Held by intermediary; payout delays / freezes
Transaction Fees$0% cut on settlements (self-hosted MIT; hosted cloud includes 3 free sales -> $9/mo Pro)1%–10% + withdrawal minimums
SDK RuntimesPython + Zero-Dependency TypeScript/Node.js (`sdk-js/`)Often single-language or heavy SDKs
Networks & Assets SupportedUSDT/USDC + Native ETH, BNB, POL, SOL & Bitcoin Taproot (`bc1p...`)Limited or custodian-locked
Hosted Invoice Pages + WebhooksIncluded (/paygate/checkout/{id} + X-PayGate-Signature HMAC-SHA256)Often requires merchant KYB/KYC
Non-Custodial SaaS SubscriptionsIncluded (customer_ref + billing_days + /api/v1/paygate/subscriptions/check)Requires cards or infinite token approvals
HTTP 402 (`x402 v2`) PaywallsIncluded (FastAPI @require_usdt_payment + Express paygateExpressMiddleware)Rare / separate SDK
Telegram Paid VIP AutomationIncluded (60-second bot onboarding, 1-time invite links, auto-kick on expiry)High % revenue share
MCP Server for AI AgentsIncluded (Streamable HTTP 2025-03-26, ping, resources, prompts + Stdio MCP)Not supported
Security & Reproducibility100% auditable Python & ESM Node.js, full pytest + node --test + CIBlack-box binaries / closed SaaS

Architecture Overview

  Merchant / SaaS / AI Agent

│ ├── 1. Invoice API or MCP (create_usdt_invoice) │ └─> Hosted Checkout URL (/paygate/checkout/{inv_id}) │ ├── 2. FastAPI @require_usdt_payment Route Guard │ └─> Returns HTTP 402 + PAYMENT-REQUIRED (x402 v2 JSON) │ └── 3. Multi-Tenant Telegram VIP Bot (/vip / /start) │ ▼ Buyer transfers USDT / USDC directly to Merchant Wallet (Polygon · BSC BEP20 · Base · Arbitrum · Ethereum · Solana) │ ▼ PayGate On-Chain RPC Verifier (live JSON-RPC + SQLite anti-replay) │ ├── Signed invoice.paid Webhook (X-PayGate-Signature: sha256=...) ├── Single-use Telegram Invite Link (member_limit=1) + Expiry Kick └── HTTP 200 API Response Unlocked


30-Second Quickstarts

0. Monetize Any Python MCP Tool in 1 Line (@mcp_tool_paywall)

Wrap any FastMCP / mcp SDK tool or Python function with @mcp_tool_paywall. Callers get free_calls free invocations (with live paygate_billing telemetry), and automatically unlock unlimited access when they pay your non-custodial USDT/USDC invoice or recurring subscription:

from paygate_sdk import mcp_tool_paywall

@mcp_tool_paywall( price_usd=9.0, merchant_wallet="0xYourEvmOrSolanaWalletAddress", network="base", # base | polygon | arbitrum | bsc | ethereum | solana free_calls=3, # free trial invocations per customer_ref billing_days=30, # recurring 30-day subscription entitlement title="Pro AI Agent MCP Pass", ) def analyze_market_alpha(symbol: str, customer_ref: str = "", paygate_invoice_id: str = "") -> dict: return {"symbol": symbol, "verdict": "STRONG_BUY"}

0b. TypeScript / Node.js Quickstart (sdk-js/, Zero npm Dependencies)

Monetize any TypeScript @modelcontextprotocol/sdk MCP tool or Express / Next.js API route in 1 wrapper with native Node.js 18+ fetch and node:crypto:

import {

withMcpToolPaywall, paygateExpressMiddleware, verifyWebhookSignature, } from "./sdk-js/index.mjs";

// 1. Wrap any TypeScript MCP tool with 3 free calls + $9/30d non-custodial unlock export const proSignalTool = withMcpToolPaywall( { priceUsd: 9.0, merchantWallet: "0xYourEvmOrSolanaWalletAddress", network: "base", freeCalls: 3, billingDays: 30, title: "Pro MCP Tool Pass", }, async ({ symbol }) => ({ symbol, verdict: "STRONG_BUY" }) );

// 2. Protect any Express / Connect HTTP route with x402 v2 + X-PayGate-Invoice app.get( "/api/pro-signal", paygateExpressMiddleware({ priceUsd: 5.0, merchantWallet: "0xYourEvmWalletAddress", network: "base", description: "Institutional Trading Signal", }), (req, res) => res.json({ ok: true, signal: "ETH/USDC", paygate: req.paygate }) );

1. Protect any FastAPI Endpoint with HTTP 402 (x402 v2 Direct USDT/USDC)
from fastapi import FastAPI, Request

from paygate_sdk import require_usdt_payment

app = FastAPI()

@app.get("/api/pro-signal") @require_usdt_payment( price_usd=5.0, recipient_wallet="0xYourEvmWalletAddress", networks=("base", "polygon", "arbitrum", "bsc"), ) async def pro_signal(request: Request): return {"signal": "ETH/USDC breakout verified"}

Unpaid callers receive 402 Payment Required with an x402 v2 PAYMENT-REQUIRED header. Callers pass X-Payment-Network + X-Payment-Tx and PayGate verifies the stablecoin Transfer event on-chain with built-in anti-replay protection.

2. Create Hosted Checkout Links & Verify HMAC-SHA256 Webhooks
from paygate_sdk import PayGateClient, verify_webhook_signature

client = PayGateClient("https://chainguard-studio-production.up.railway.app")

res = client.create_invoice( title="SaaS Pro Seat (30 Days)", amount_usd=29.0, network="polygon", # polygon | bsc | base | arbitrum | ethereum | solana merchant_wallet="0xYourEvmWalletAddress", webhook_url="https://yourapp.com/webhooks/paygate", webhook_secret="whsec_your_signing_secret", ) print("Send buyer to:", res["checkout_url"])

Inside your webhook receiver:

is_authentic = verify_webhook_signature(raw_body_bytes, request.headers["X-PayGate-Signature"], "whsec_your_signing_secret")

3. Verify On-Chain Transfers Standalone (OnChainPaymentVerifier)
from app.onchain_verifier import OnChainPaymentVerifier

verifier = OnChainPaymentVerifier() result = verifier.verify( network="bsc", tx_hash="0x...", min_amount_usd=199.0, expected_recipient="0xYourBep20WalletAddress", ) print(result.verified, result.amount_usd, result.token)

4. CLI & Local Stdio MCP Server (Claude Desktop / Cursor / OpenCode)

Run an instant hosted checkout link directly from your terminal:

pip install -e .

paygate-usdt invoice --title "VIP Access" --amount 49 --network polygon --wallet 0xYourWallet paygate-usdt verify-tx --network bsc --tx 0x... --amount 199 --wallet 0xYourWallet

Or connect PayGate USDT as a local Stdio MCP server (mcpServers config):

{

"mcpServers": { "paygate-usdt": { "command": "python", "args": ["-m", "paygate_sdk", "mcp"] } } }

5. Runnable Examples, 1-Line Embed Widget & Docker

Add a non-custodial USDT/USDC pay button to any static site, GitHub README, or Markdown page in 1 URL or 1 tag:

<a data-paygate-merchant="0xYourWallet" data-paygate-amount="29" data-paygate-network="polygon" data-paygate-title="Pro Access">

Pay $29 USDT

Or generate a stateless 1-click checkout URL directly in Python:

from paygate_sdk import PayGateClient

url = PayGateClient().build_payment_url( merchant_wallet="0xYourWallet", amount_usd=29.0, network="polygon", title="Pro Plan (30d)", )

6. Non-Custodial Recurring SaaS Subscriptions (No Infinite Approvals)

Accept recurring 30-day SaaS/API memberships directly in USDT/USDC without requesting MAX_UINT256 token allowances. Renewals paid early automatically stack remaining days:

from paygate_sdk import PayGateClient

client = PayGateClient("https://chainguard-studio-production.up.railway.app")

1. Check active entitlement & get a 1-Click pre-filled renewal link

sub = client.check_subscription( merchant_wallet="0xYourEvmWalletAddress", customer_ref="user_42", amount_usd=19.0, network="base", billing_days=30, ) if not sub["active"]: print("Renew here:", sub["renewal_url"])

docker compose up --build

Run Tests Locally

git clone https://github.com/EzequielLec

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요