Giter VIP home page Giter VIP logo

pay-by-link-sample-kotlin's Introduction

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.

pay-by-link-sample-kotlin's People

Contributors

jlengrand avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pay-by-link-sample-kotlin's Issues

[Enhancement/Good-first-ticket] pay-by-link accepts unit-size of 0 and units are shown incorrectly

  1. The units shown are in units of 100s:
    Actual: Once you've created the payment of "1 EUR", the items in the list are shown as "1 EUR" after clicking on the pay-by-link, it shows the value of 0.01 EUR
    Expected: "1 EUR" to show after clicking on the pay-by-link
  • Change text so that the units are reflected properly
  1. It is possible to create a payment request of 0 Euros
  • [Potential Product improvement] Check this with the product team whether this is intended behavior @jlengrand
  • Change the verification in this pay-by-link-sample by doing a if > 0 check

Links don't align properly

When creating several links, I'd like alignment to look the same on all links. Except they don't right now :)

image

This needs fixing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.