This is a demo showing how to build a custom Adyen checkout using Next.js and server components.
Run npm install
to install the dependencies.
Run npm run dev
to start the development server on http://localhost:3000.
Create a .env.local
file in the root of the project and fill in the following environment variables:
ADYEN_API_KEY=
ADYEN_MERCHANT_ACCOUNT=
NEXT_PUBLIC_ADYEN_CLIENT_KEY=
NEXT_PUBLIC_ADYEN_ENVIRONMENT=TEST
ADYEN_CURRENCY=EUR