Use the Adyen Checkout API to build a Drop-in integration and handle payment result codes

domain: docs.adyen.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. On the server side, POST to /v70/sessions (or versioned equivalent) with amount, currency, merchantAccount, returnUrl, and a reference to create a payment session; return the sessionId and sessionData to the frontend
  2. On the frontend, import the Adyen Web Drop-in component from the CDN or npm package, instantiate AdyenCheckout with the sessionId, sessionData, and clientKey, then call create('dropin').mount('#container')
  3. The Drop-in handles payment method rendering, 3DS2 challenges, and redirect flows automatically; no additional frontend payment-method-specific code is needed for the Sessions flow
  4. On your returnUrl page, finalise the payment by reading the redirectResult query parameter (present for redirect-based methods) and calling POST /v70/sessions/{sessionId}/result or letting the Drop-in handle it via the onPaymentCompleted callback
  5. Map the resultCode in the response: Authorised means success; Refused, Error, and Cancelled each require different customer-facing messaging; Pending and Received are used for delayed-capture methods like bank transfers

Known gotchas

Related routes

Create and manage the expiration of an Adyen Pay by Link payment link via the Checkout API
docs.adyen.com · 5 steps · unrated
Use the Adyen Management API to create and configure a merchant account
docs.adyen.com · 5 steps · unrated
Build an Adyen Tap to Pay on Android (SoftPOS) integration using the Android Mobile SDK
docs.adyen.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans