Take payments with Adyen
This guide explains how to let users pay for your Casdoor products with Adyen. Users pay on the hosted checkout page of Adyen, with cards, digital wallets, and the local payment methods of your Adyen account.
Learning outcomes
- Get an API key and the merchant account name from Adyen.
- Add Adyen as a payment provider and add it to a product.
What you need
- An Adyen account
- A product in Casdoor
Get the credentials
- Sign in to the Adyen Customer Area and go to Developers > API credentials.
- Create a web service API credential and generate an API key with payment permissions.
- Copy the API key and note the name of your merchant account.
Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Paymentand Type toAdyen. -
Fill in the fields. Adyen doesn't use Client ID.
Касдор Adyen ID клієнта 2 Merchant account name Секрет клієнта Ключ API -
Save the provider.
Add the provider to a product
Add the provider to the Payment providers of the product and save it. At checkout, Casdoor creates the payment and sends the user to Adyen.
примітка
The runmode in conf/app.conf of Casdoor decides whether Casdoor uses the test or the live environment of Adyen. Use test credentials in development.