Giter VIP home page Giter VIP logo

adyen-java-spark-online-payments's Introduction

Adyen Checkout integration demo

Run this integration in seconds using Gitpod

Open in Gitpod

NOTE: To allow the Adyen Drop-In and Components to load, you have to add gitpod.io as allowed origin for your chosen set of API Credentials

Details

This repository includes examples of PCI-compliant UI integrations for online payments with Adyen. Within this demo app, we've created a simplified version of an e-commerce website, complete with commented code to highlight key features and concepts of Adyen's API. Check out the underlying code to see how you can integrate Adyen to give your shoppers the option to pay with their preferred payment methods, all in a seamless checkout experience.

Card Checkout Demo

Integrations

Java with Spark Java demos of the following client-side integrations are available in this repository:

  • Drop-in
  • Component
    • ACH
    • Alipay
    • Boleto
    • Card
    • Dotpay
    • Giropay
    • iDEAL
    • Klarna
    • PayPal
    • Sofort

Requirements

  • Java 11 (or higher)
  • Network access to maven central

Dependencies

The Gradle build will install the following jars from maven central

  • Java Spark v2.9.1
    • Simple Logging Facade (slf4j-simple v1.7.25)
    • Jinjava template v2.7.1
  • org.apache.http URLEncodedUtils v4.5.11
  • Adyen Java API Library v17.2.0

Installation

  1. Clone this repo
  2. Make sure you have Java installed

Usage

  1. Copy the config.properties.example config file to config.properties with your API key, Client Key - Remember to add http://localhost:8080 as an origin for client key, and merchant account name like below:
    merchantAccount = YourTestMerchantAccount
    apiKey = YourAPIKey
    clientKey = YourClientKey
    
  2. Run ./gradlew run
  3. Visit http://localhost:8080 and select an integration type!

NOTE: The application will also automatically pick up on the ADYEN_MERCHANT_ACCOUNT, ADYEN_API_KEY and ADYEN_CLIENT_KEY environment variables in case you do not want to create a config.properties file.

Contributing

We commit all our new features directly into our GitHub repository. Feel free to request or suggest new features or code changes yourself as well!!

Find out more in our Contributing guidelines.

License

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

adyen-java-spark-online-payments's People

Contributors

deepu105 avatar elenapereztoril avatar gcatanese avatar jillingk avatar jlengrand avatar lucasbledsoe avatar tddouglas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adyen-java-spark-online-payments's Issues

Set redirectUrl using hostname

The redirectUrl is hardcoded (http://localhost:8080) therefore it doesn't work when the app is deployed on Gitpod (or other cloud providers). Refactor to use the hostname header.

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.