This repository showcases an implementation of the Adyen payment plugin for Vendure.
Install the dependencies in both the storefront
and the vendure
folder:
git clone
cd vendure-adyen-plugin-example
cd storefront
yarn install
cd ../vendure
yarn install
Add your credentials in both .env files:
- NEXT_PUBLIC_ADYEN_CLIENT_KEY: Adyen client key (storefront)
- If configured:
- HMAC_KEY (vendure)
- BASIC_AUTH_USERNAME (vendure)
- BASIC_AUTH_PASSWORD (vendure)
Then you can launch the storefront and the vendure server in two separate terminals from the root folder of the project.
The server will run on port 3000:
yarn vendure
Modify the Adyen Payment method in the Vendure admin UI by adding your Adyen API key. Also, change your Channel token to have it match your Adyen merchant account name.
The storefront will run on port 4200:
yarn storefront
WARNING: Use the storefront in Incognito mode, otherwise the session cookie from the Vendure admin UI will conflict.
You can make now a simple order for a wireless mouse!