mcp-payway

v0.1.0
io.github.codespar/mcp-payway Checked 8 hours ago Published 5 months ago

Payway (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.

ParameterTypeDescription
card_expiration_month *stringExpiry month, MM (e.g. '08')
card_expiration_year *stringExpiry year, YY (e.g. '27')
card_holder_name *stringCardholder name as printed
card_number *stringFull PAN (card number)
security_code *stringCVV/CVC
card_holder_identificationobjectCardholder 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.

ParameterTypeDescription
amount *numberInteger amount in minor units (cents)
currency *stringISO currency, e.g. ARS
installments *numberNumber of installments (cuotas)
payment_method_id *numberCard brand id (1=Visa, 31=Mastercard, 15=Maestro, ...)
payment_type *string'single' for a normal sale; 'distributed' for split
site_transaction_id *stringMerchant-side unique transaction id (idempotency anchor)
token *stringToken id from create_token
binstringFirst 6 digits of the PAN (returned by create_token)
customerobjectBuyer reference for fraud screening: { id, email, ip_address }
descriptionstringCharge description
establishment_namestringSoft descriptor / establishment name
sub_paymentsarrayDistributed/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.

ParameterTypeDescription
id *stringPayway payment id

list_payments

List payments with optional pagination and filters (GET /payments). Uses the PRIVATE apikey.

ParameterTypeDescription
merchantIdstringFilter by merchant id (multi-site setups)
offsetnumberPagination offset
pageSizenumberPage size
siteOperationIdstringFilter 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.

ParameterTypeDescription
id *stringPayway payment id to refund
amountnumberOptional 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.

ParameterTypeDescription
id *stringPayway payment id to capture
amountnumberAmount to capture in minor units