Adyen Drop-in in the Next.js App Router: sessions flow, return page and webhooks, then a receipt checkout around it

Adyen's Drop-in is one component that shows every payment method you turned on, cards, wallets and local methods, and runs 3D Secure and redirects for you. Here it is in a Next.js App Router app with the sessions flow from @adyen/adyen-web 6: a Server Action creates the session with @adyen/api-library, Drop-in mounts in a client component, onPaymentCompleted and onPaymentFailed report the result, a return page finishes redirect payments, and a route handler checks each webhook's HMAC signature. The plain Drop-in with Adyen's own Pay button is free and shown in full. Then the same Drop-in goes inside a checkout card that turns into a stamped receipt when the payment is authorised.

Receipt Morph Checkout, preview

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript