Argentina's dominant card-acquiring gateway (ex-Prisma / Decidir). Two-step inbound card charges over the rails that move Argentine retail.
Payway gives your agent 6 tools it calls directly โ pick the ones it needs, in Claude, Cursor, or any MCP client.
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-paywayAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"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>"
}
}
}
}After restart, your agent can call any of the 6 tools below โ try create_token first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
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).
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
create_tokencreate_paymentget_paymentlist_paymentsrefund_paymentconfirm_paymentMCP is a protocol โ any framework that speaks it can mount this server.