Gateway adquirente dominante de Argentina (ex-Prisma / Decidir). Cobros con tarjeta en dos pasos sobre los rieles que mueven el retail argentino.
Payway le da a tu agente 6 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_token — Tokenize sensitive card data (PAN, expiry, CVV, cardholder, document) into a single-use payment token (POST /tokens). Uses the PUBLIC apikey. Returns a token id consumed by create_payment, plus the card bin.create_payment — Create a card charge from a token produced by create_token (POST /payments). Uses the PRIVATE apikey. amount is an integer in minor units (50000 = ARS 500.00). payment_type 'single' for a normal sale, 'distributed' with sub_payments for split/marketplace.get_payment — Fetch a single payment by its Payway payment id (GET /payments/{id}). Uses the PRIVATE apikey.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_token", { /* ... */ });$ npm install @codespar/mcp-paywayAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"payway": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-payway"
],
"env": {
"PAYWAY_PUBLIC_API_KEY": "<your_payway_public_api_key>",
"PAYWAY_PRIVATE_API_KEY": "<your_payway_private_api_key>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 6 herramientas de abajo — probá create_token primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
PAYWAY_PUBLIC_API_KEYPayway PUBLIC apikey — used only by create_token (card tokenization)
PAYWAY_PRIVATE_API_KEYPayway PRIVATE apikey — payments, captures, refunds and queries
PAYWAY_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox' (Decidir sandbox host).
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_tokencreate_paymentget_paymentlist_paymentsrefund_paymentconfirm_paymentMCP es un protocolo — cualquier framework que lo hable puede montar este server.