Adyen Pay by link integration demo
Run this integration in seconds using Gitpod
- Open your Adyen Test Account and create a set of API keys.
- Go to gitpod account variables.
- Set the
ADYEN_API_KEY
,ADYEN_CLIENT_KEY
,ADYEN_HMAC_KEY
andADYEN_MERCHANT_ACCOUNT
variables. - Click the button below!
This repository demonstrates a very minimal application allowing you to create payment links, and monitor their status. Bear in mind that the list of payment links is only stored in memory and will be lost once the application is stopped.
The Demo leverages Adyen's API Library for Java (GitHub | Docs).
- Java 17
- Kotlin 1.7
- Node 17
- Network access to maven central
- Clone this repo:
git clone https://github.com/jlengrand/pay-by-link-sample-kotlin
- Set environment variables for your API key, Client Key - Remember to add
http://localhost:8080
as an origin for client key, and merchant account name:
export ADYEN_API_KEY=yourAdyenApiKey
export ADYEN_MERCHANT_ACCOUNT=yourAdyenMerchantAccount
On Windows CMD you can use below commands instead
set ADYEN_API_KEY=yourAdyenApiKey
set ADYEN_MERCHANT_ACCOUNT=yourAdyenMerchantAccount
- Start the server:
./gradlew run
- Visit http://localhost:8080/ to select an integration type.
To try out integrations with test card numbers and payment method details to complete payment on generated links, see Test card numbers.
MIT license. For more information, see the LICENSE file in the root directory.