Payway

Finance and commerce

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

Your AI app calls the Payway MCP server, which does the finance and commerce work and sends the result back to the chat.

About Payway

Payway is a community MCP server from codespar, filed in our directory under finance and commerce. Payway (ex-Decidir), Argentina card acquiring: tokenize, charge, capture, refund.

Payway runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-payway@0.1.0 and talks to it over standard input and output. It needs PAYWAY_PUBLIC_API_KEY and PAYWAY_PRIVATE_API_KEY set before Payway starts.

Payway is listed in the official MCP registry as io.github.codespar/mcp-payway, version 0.1.0.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-payway
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-payway

How to set up Payway

  1. Install Node.js on the machine that runs your AI app, because Payway starts with npx and downloads its package on first run.
  2. Create PAYWAY_PUBLIC_API_KEY and PAYWAY_PRIVATE_API_KEY for Payway in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Payway to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Payway tools to confirm the connection.
  5. Run one read-only task with Payway first, and keep your app asking before each tool call until the results look right.

Payway compared with similar servers

  • Persona by codespar has fewer GitHub stars than Payway (278 against 278); both are community servers, and both run locally.
  • Paypal by codespar has fewer GitHub stars than Payway (278 against 278); both are community servers, and both run locally.
  • Picpay by codespar has fewer GitHub stars than Payway (278 against 278); both are community servers, and both run locally.

Before you connect Payway

  • Give Payway its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Payway tool call until you trust what it does with them.
  • Treat text that Payway fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Payway on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Payway

How marketing and sales teams put Payway to work, by company size. Pick the size closest to yours and start Payway on one use case.

Small business

  • A small business can ask Payway which products and customers drive margin, then plan promotions around them.
  • Owners can use Payway to check refunds, failed payments and churn reasons without opening three dashboards.
  • Payway runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Payway to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Payway to check spend against budget each week and move money to what's working.
  • Start Payway on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Payway read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Payway to answer revenue questions by channel and region with figures finance signs off on.
  • Payway is a community server, so have security review the code and pin a version before Payway touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Payway README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

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:

Key Header May call
Public apikey POST /tokens (card tokenization only)
Private apikey Everything else: payments, captures, refunds, queries

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

Tools (6)

Tool Endpoint What it does
create_token POST /tokens Tokenize card data into a single-use payment token (public key)
create_payment POST /payments Charge a token, single sale or distributed/split, with installments
get_payment GET /payments/{id} Fetch a payment by id
list_payments GET /payments List payments (offset, pageSize, siteOperationId, merchantId)
refund_payment POST /payments/{id}/refunds Full refund (empty body) or partial (amount in minor units)
confirm_payment PUT /payments/{id} Capture a previously authorized payment (two-step flow)

Environment

Variable Required Description
PAYWAY_PUBLIC_API_KEY yes Public apikey (tokenization)
PAYWAY_PRIVATE_API_KEY yes Private apikey (payments, refunds, queries)
PAYWAY_ENV no sandbox (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

Questions about Payway

What is the Payway MCP server?

Payway (ex-Decidir), Argentina card acquiring: tokenize, charge, capture, refund. Payway is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Payway MCP server?

Add Payway to your AI app's MCP config with the command npx -y @codespar/mcp-payway@0.1.0. In Claude Code, run claude mcp add --transport stdio codespar-payway -- npx -y @codespar/mcp-payway@0.1.0. To run Payway this way you need Node.js installed.

Does Payway need an API key?

Yes. Payway expects PAYWAY_PUBLIC_API_KEY and PAYWAY_PRIVATE_API_KEY to be set. Create the key for Payway in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Payway an official MCP server?

No. Payway is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Payway access to company data.

What license is Payway under?

Payway is released under the MIT license, according to its GitHub repository. The license covers the code of Payway; the service it connects to has its own terms.