In this tutorial, you'll set up your Adyen test account to use it with commercetools Frontend. While this tutorial uses the test account, you also can follow the same steps on a live account.
Create API credentials
- Log in to your Adyen test dashboard.
- Go to Developer > API credentials.
- Click Create new credential. The Create API credential window opens. Select Web service user as the Credential type and click Create credential.
- In the Server settings section, click Generate API key. Copy and save the API key for later use.
- In the Client settings section, click Generate client key. Copy and save the client key for later use.
- Add the site URLs using these credentials to the list of allowed origins.
- Click Save changes.
merchantAccountfrom the Settings > Merchant accounts.
Set up a webhook
You must register your payment notifications action handler as a webhook in the Adyen dashboard to receive payment status updates.
- Go to Developers > Webhooks.
- Click the Add Webhook button in the top right. In the Create new webhook window, add a Standard notification webhook.
- Under the General section, edit the server configuration to add the webhook URL. You must register the URL
<your-site>is your production/staging/sandbox URL) with the
JSONmethod. Click Apply.
- Under the Security section, generate and copy an HMAC Key.
Update the project configuration
baseUrl used below is for test accounts only. You must replace this
baseUrl with the live endpoint before releasing the application, as described in Adyen documentation.
project.yml with the Adyen configuration, as shown below.