From a5ecb067d60ede985d068b79b2ae277bb3ac4daf Mon Sep 17 00:00:00 2001 From: Tyler Douglas Date: Fri, 3 Apr 2020 18:11:06 -0700 Subject: [PATCH] Added .gitignore, README.md, License TODO: - Figure out how best to deploy Java Spark application - Update README.md with deployment instructions - Update Adyen API calls to support LPMS --- .gitignore | 10 ++++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..825143b --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.gradle +.idea + +.DS_Store + +gradle +build + +gradlew +gradlew.bat \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..edfc726 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c762c46 --- /dev/null +++ b/README.md @@ -0,0 +1,52 @@ +# [Adyen Checkout](https://docs.adyen.com/checkout) integration demo + +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. + +## Integrations + +**Java with Spark Java** demos of the following client-side integrations are available in this repository: + +* [Drop-in](https://docs.adyen.com/checkout/drop-in-web) +* [Component](https://docs.adyen.com/checkout/components-web) + * ACH + * Alipay + * Boleto + * Card + * Dotpay + * Giropay + * iDEAL + * Klarna + * Sofort + + +## Requirements - TODO + +* Java 1.8 +* Gradle + +## Installation - TODO + +1. Clone this repo +2. ... + +## Usage - TODO + +1. Update the config file `config.ini` with your [API key](https://docs.adyen.com/user-management/how-to-get-the-api-key), [Origin Key](https://docs.adyen.com/user-management/how-to-get-an-origin-key), and merchant account name like below: + ``` + merchant_account = TestMerchantAccount + checkout_apikey = SampleAPIKey + origin_key = SampleOriginKey + ``` +2. Make sure your (venv) is activated by running `source ./venv/bin/activate` from your projects root. +3. Run `./start.sh` to: + * Initialize the required environment variables. This step is necessary every time you re-activate your (venv) + * Run flask +3. Visit [http://localhost:8080](http://localhost:8080) and select an integration type! + +## 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!! + +## License + +MIT license. For more information, see the **LICENSE** file in the root directory \ No newline at end of file