mcp-payway
v0.1.0Payway (ex-Decidir) — Argentina card acquiring: tokenize, charge, capture, refund
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
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.
| Parameter | Type | Description |
|---|---|---|
card_expiration_month * | string | Expiry month, MM (e.g. '08') |
card_expiration_year * | string | Expiry year, YY (e.g. '27') |
card_holder_name * | string | Cardholder name as printed |
card_number * | string | Full PAN (card number) |
security_code * | string | CVV/CVC |
card_holder_identification | object | Cardholder document, e.g. { type: 'dni', number: '12345678' } |
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.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Integer amount in minor units (cents) |
currency * | string | ISO currency, e.g. ARS |
installments * | number | Number of installments (cuotas) |
payment_method_id * | number | Card brand id (1=Visa, 31=Mastercard, 15=Maestro, ...) |
payment_type * | string | 'single' for a normal sale; 'distributed' for split |
site_transaction_id * | string | Merchant-side unique transaction id (idempotency anchor) |
token * | string | Token id from create_token |
bin | string | First 6 digits of the PAN (returned by create_token) |
customer | object | Buyer reference for fraud screening: { id, email, ip_address } |
description | string | Charge description |
establishment_name | string | Soft descriptor / establishment name |
sub_payments | array | Distributed/split sub-payment legs; empty array for a single payment |
get_payment
Fetch a single payment by its Payway payment id (GET /payments/{id}). Uses the PRIVATE apikey.
| Parameter | Type | Description |
|---|---|---|
id * | string | Payway payment id |
list_payments
List payments with optional pagination and filters (GET /payments). Uses the PRIVATE apikey.
| Parameter | Type | Description |
|---|---|---|
merchantId | string | Filter by merchant id (multi-site setups) |
offset | number | Pagination offset |
pageSize | number | Page size |
siteOperationId | string | Filter by site_transaction_id |
refund_payment
Refund a payment, fully or partially (POST /payments/{id}/refunds). POST with an empty body refunds the full amount; pass amount (integer minor units) for a partial refund. Uses the PRIVATE apikey.
| Parameter | Type | Description |
|---|---|---|
id * | string | Payway payment id to refund |
amount | number | Optional partial refund amount in minor units; omit for a full refund |
confirm_payment
Confirm (capture) a previously authorized payment in the two-step auth + capture flow (PUT /payments/{id}). Uses the PRIVATE apikey.
| Parameter | Type | Description |
|---|---|---|
id * | string | Payway payment id to capture |
amount | number | Amount to capture in minor units |