mirror of
https://github.com/jlengrand/adyen-java-spark-online-payments.git
synced 2026-03-10 08:01:24 +00:00
Merge pull request #8 from adyen-examples/feat/gitpod
Creates gitpod file
This commit is contained in:
20
.gitpod.yml
Normal file
20
.gitpod.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
tasks:
|
||||
- init: ./gradlew build
|
||||
command: |
|
||||
if [ -z ${ADYEN_HMAC_KEY+x} ] || [[ -z ${ADYEN_API_KEY+x} ]] || [[ -z ${ADYEN_CLIENT_KEY+x} ]] || [[ -z ${ADYEN_MERCHANT_ACCOUNT+x} ]]; then
|
||||
echo "Expected environment variables not found. Please set the ADYEN_HMAC_KEY, ADYEN_API_KEY, ADYEN_CLIENT_KEY, ADYEN_MERCHANT_ACCOUNT environment variables and rerun session https://gitpod.io/variables."
|
||||
else
|
||||
./gradlew run
|
||||
fi
|
||||
|
||||
# exposed ports
|
||||
ports:
|
||||
- port: 8080
|
||||
onOpen: open-preview
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- redhat.java
|
||||
- vscjava.vscode-java-debug
|
||||
- vscjava.vscode-java-test
|
||||
- pivotal.vscode-spring-boot
|
||||
12
README.md
12
README.md
@@ -21,6 +21,16 @@ This repository includes examples of PCI-compliant UI integrations for online pa
|
||||
* PayPal
|
||||
* Sofort
|
||||
|
||||
## Run this integration in seconds using [Gitpod](https://gitpod.io/)
|
||||
|
||||
* Open your [Adyen Test Account](https://ca-test.adyen.com/ca/ca/overview/default.shtml) and create a set of [API keys](https://docs.adyen.com/user-management/how-to-get-the-api-key).
|
||||
* Go to [gitpod account variables](https://gitpod.io/variables).
|
||||
* Set the `ADYEN_API_KEY`, `ADYEN_CLIENT_KEY`, `ADYEN_HMAC_KEY` and `ADYEN_MERCHANT_ACCOUNT variables`.
|
||||
* Click the button below!
|
||||
|
||||
[](https://gitpod.io/#https://github.com/adyen-examples/adyen-java-spark-online-payments)
|
||||
|
||||
_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](https://ca-test.adyen.com/ca/ca/config/api_credentials_new.shtml)_
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -52,7 +62,7 @@ The Gradle build will install the following jars from maven central
|
||||
2. Run `./gradlew run`
|
||||
3. Visit [http://localhost:8080](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._
|
||||
_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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user