Mcp Payway

io.github.codespar由 GitHub 帳號 codespar 發布v0.1.0更新於 Oct 24, 2026

Payway (ex-Decidir) — Argentina card acquiring: tokenize, charge, capture, refund

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

讓助理在阿根廷 Payway(前 Decidir)完成卡片權杖化、付款、請款、退款與查詢。

可以做什麼
封裝阿根廷 Payway(前 Decidir)收單 API。工具涵蓋卡片權杖化(create_token)、以權杖建立單筆或分帳付款並支援分期(create_payment)、查詢單筆與列表付款、全額或部分退款,以及在兩步流程中請款已授權的付款。金額為最小貨幣單位的整數,payment_method_id 用來識別卡別。
適用情境
當助理需要為阿根廷商戶執行 Payway 卡片操作時使用:收款、請款授權、退款或查詢付款狀態。對其他支付閘道或地區並不適用。
執行需求
以 stdio 在本機執行,通常透過 npx @codespar/mcp-payway 啟動,需要 Node.js。需要 PAYWAY_PUBLIC_API_KEY 與 PAYWAY_PRIVATE_API_KEY,可選 PAYWAY_ENV 設為 sandbox(預設)或 production。需要連線至 Payway 或 Decidir API 主機的網路。
安裝前請注意
私鑰可發動真實扣款、請款與退款,在正式環境會實際動用資金。卡號資料必須由使用者或保管庫提供,伺服器不會自行產生。在準備完成前讓 PAYWAY_ENV 維持 sandbox,並將兩把 API 金鑰都視為機密。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Payway,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-payway

MCP server for Payway (ex-Prisma Medios de Pago / Decidir) — Argentina's dominant card-acquiring gateway: card tokenization, one-step and two-step charges, installments (cuotas), marketplace split and refunds.

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "payway": {      "command": "npx",      "args": ["-y", "@codespar/mcp-payway"],      "env": {        "PAYWAY_PUBLIC_API_KEY": "your-public-apikey",        "PAYWAY_PRIVATE_API_KEY": "your-private-apikey",        "PAYWAY_ENV": "sandbox"      }    }  }}

Claude Code

bash
claude mcp add payway -- npx @codespar/mcp-payway

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "payway": {      "command": "npx",      "args": ["-y", "@codespar/mcp-payway"],      "env": {        "PAYWAY_PUBLIC_API_KEY": "your-public-apikey",        "PAYWAY_PRIVATE_API_KEY": "your-private-apikey",        "PAYWAY_ENV": "sandbox"      }    }  }}

Authentication

Payway authenticates with a single raw header named apikey (not Authorization: Bearer). Two co-equal keys exist with different powers — see the table below.

The two-key model

Payway issues two co-equal API keys with different powers:

KeyHeaderMay call
PublicapikeyPOST /tokens (card tokenization only)
PrivateapikeyEverything else: payments, captures, refunds, queries

The auth header is a single raw header named apikey — not Authorization: Bearer.

Tools (6)

ToolEndpointWhat it does
create_tokenPOST /tokensTokenize card data into a single-use payment token (public key)
create_paymentPOST /paymentsCharge a token — single sale or distributed/split, with installments
get_paymentGET /payments/{id}Fetch a payment by id
list_paymentsGET /paymentsList payments (offset, pageSize, siteOperationId, merchantId)
refund_paymentPOST /payments/{id}/refundsFull refund (empty body) or partial (amount in minor units)
confirm_paymentPUT /payments/{id}Capture a previously authorized payment (two-step flow)

Environment

VariableRequiredDescription
PAYWAY_PUBLIC_API_KEYyesPublic apikey (tokenization)
PAYWAY_PRIVATE_API_KEYyesPrivate apikey (payments, refunds, queries)
PAYWAY_ENVnosandbox (default, Decidir sandbox host) or production

Base URLs: production https://ventasonline.payway.com.ar/api/v2, sandbox https://developers.decidir.com/api/v2.

Notes

  • Amounts are integers in minor units: 50000 = ARS 500.00.
  • payment_method_id identifies the card brand (1 = Visa, 31 = Mastercard, 15 = Maestro, …).
  • site_transaction_id is the merchant-side idempotency anchor — unique per sale.
  • This server never invents card data; agents must collect PAN/expiry/CVV from the user or a vault.

Enterprise

Need governance, budget limits, and audit trails for agent-driven payments on Payway? CodeSpar Enterprise adds a policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT © CodeSpar

來源:packages/argentina/payway/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分