Take and manage payments on Adyen's Checkout API: sessions, payments, payment links, captures, refunds, cancels, stored payment methods and donations.
Adyen ships in the w6w first-party pack. It declares 24 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.adyenAdyen is a payments platform that processes cards and local payment methods for online merchants. This app drives its Checkout API (v72) from a workflow: start a payment session or a hosted payment link, submit or complete a payment, and then manage it afterwards with captures, cancels, refunds, reversals and authorised-amount updates.
It also covers the supporting calls a checkout needs: listing the payment methods available to a shopper, checking a gift card balance, looking up card brands, creating and deleting stored payment methods (tokens), listing a shopper’s saved methods, running donation campaigns, and creating or cancelling partial-payment orders.
One connection holds an API key, the merchant account, and whether you are on the test environment or on your company’s live endpoint. Money-moving calls carry the workflow invocation id as Adyen’s Idempotency-Key, so a retried step does not charge or refund twice.
Three routes to the same 24 actions. The Workflow tab is generated from Adyen's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
cancel-order Cancel a partial-payment order and release what was authorised against it.
cancel-payment Cancel an authorised payment that has not been captured yet. Needs the payment's PSP reference.
cancel-payment-by-reference Cancel an authorised payment using your own payment reference instead of its PSP reference.
capture-payment Capture an authorised payment, in full or in part. The outcome arrives later in a CAPTURE webhook.
create-donation Make a donation to a campaign using the donation token from a completed payment.
create-order Create an order for partial payments (for example a gift card plus a card). Returns the orderData to pay against.
create-payment Start a payment with a payment method object. Returns a resultCode, and an action when the shopper must authenticate or be redirected.
create-payment-link Create a hosted payment link to send to a shopper. Returns the link id, its url and status.
create-session Create a Checkout session for Drop-in or Components, or a hosted checkout page. Returns the session id, its sessionData and (for hosted mode) a url.
create-stored-payment-method Create a token for a shopper's payment details so they can be charged again later.
delete-stored-payment-method Delete a stored payment method (token) so it can no longer be charged.
get-card-details Get the brands, funding source and issuing country of a card from its number.
get-payment-link Get a payment link and its current status (active, paid, expired, ...).
get-payment-methods List the payment methods available to a shopper, given an amount, country and channel.
get-payment-methods-balance Check the balance of a gift card before using it for a partial payment.
get-session-result Get the result of a Checkout session: its status and the payments made in it.
list-donation-campaigns List the donation campaigns active for a currency, optionally filtered by locale or store.
list-stored-payment-methods List the tokens (stored payment methods) saved for a shopper.
refund-payment Refund a captured payment, in full or in part. The outcome arrives later in a REFUND webhook.
reverse-payment Cancel a payment if it has not been captured, or refund it in full if it has. Use when you are not sure which.
submit-payment-details Complete a payment that needed more from the shopper: a redirect result, a 3D Secure result or a challenge.
update-authorised-amount Increase or decrease the amount of an authorised payment before it is captured.
update-session Update the amount, or the payable flag, of an existing Checkout session.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Adyen's real ids.
{
"manifestVersion": "2",
"name": "adyen-example",
"steps": [
{
"id": "capture-payment",
"uses": {
"app": "io.w6w.adyen",
"action": "capture-payment",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"paymentPspReference": "<paymentPspReference>",
"currency": "<currency>",
"value": "<value>"
}
}
]
}capture-payment create-donation create-order create-payment create-payment-link +19 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Adyen, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Adyen. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "capture-payment",
payload: {
// merchantAccount: "<value>",
paymentPspReference: "<value>",
currency: "<value>",
value: "<value>",
// reference: "<value>",
// additionalFields: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action capture-payment --payload '{"paymentPspReference":"<value>","currency":"<value>","value":"<value>"}' Give an AI agent Adyen — without giving it Adyen's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.adyen#capture-payment",
"input": {
"paymentPspReference": "<paymentPspReference>",
"currency": "<currency>",
"value": "<value>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Adyen connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Adyen's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Adyen itself is MIT, and the runtime that executes it is source-available (FSL).
Adyen declares its own checks, so its health is a property of the app rather than something the host guesses at.
Unauthenticated POST /paymentMethods on checkout-test.adyen.com. A schema-correct security error envelope proves the API answered; credential validity is checked separately.