Adyen Pay By Link Integration Demo
If you want to know more about Pay by link, check out our related blog post or the documentation.
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
- Node 17 (to build the frontend. See
build.gradlefor details) - Network access to maven central
- Clone this repo:
git clone https://github.com/adyen-examples/adyen-java-spring-online-payments.git
- Set environment variables for the required configuration
Remember to include http://localhost:8080 in the list of Allowed Origins
export ADYEN_API_KEY=yourAdyenApiKey
export ADYEN_MERCHANT_ACCOUNT=yourAdyenMerchantAccount
export ADYEN_HMAC_KEY=yourHmacKeyOn Windows CMD you can use below commands instead
set ADYEN_API_KEY=yourAdyenApiKey
set ADYEN_MERCHANT_ACCOUNT=yourAdyenMerchantAccount
set ADYEN_HMAC_KEY=yourHmacKey- Start the server:
./gradlew bootRun
- 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.
