🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-payway

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-payway

MCP server for Payway (ex-Prisma/Decidir) — Argentina's dominant card-acquiring gateway: tokenize, charge, capture, refund

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
24
-27.27%
Maintainers
2
Weekly downloads
 
Created
Source

@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:

{
  "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

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

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.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 apikeynot 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

Keywords

mcp

FAQs

Package last updated on 04 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts