Skip to content

adyen-examples/pay-by-link-sample-kotlin

Repository files navigation

Adyen Pay by link integration demo

Run this integration in seconds using Gitpod

Open in Gitpod

Details

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).

Requirements

  • Java 17
  • Kotlin 1.7
  • Node 17
  • Network access to maven central

Installation

  1. Clone this repo:
git clone https://github.com/jlengrand/pay-by-link-sample-kotlin

Usage

  1. 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
  1. Start the server:
./gradlew run
  1. 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.

License

MIT license. For more information, see the LICENSE file in the root directory.