mirror of
https://github.com/jlengrand/checkoutCreate.git
synced 2026-03-10 08:11:18 +00:00
Adds basic support for Gitpod and doc
This commit is contained in:
17
.gitpod.yml
Normal file
17
.gitpod.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
tasks:
|
||||
- init: source ./setup.sh
|
||||
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
|
||||
./start.sh
|
||||
fi
|
||||
# exposed ports
|
||||
ports:
|
||||
- port: 8080
|
||||
onOpen: open-preview
|
||||
visibility: public
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- ms-python.python
|
||||
14
README.md
14
README.md
@@ -6,6 +6,20 @@
|
||||
An external tool which allows you to build a drop-in integration and make customizations as outlined in our style sheet. Enables you to experiment and see what your checkout could potentially look like. You can then retrive the final result alongside the changes so it can be exported for your team to fully implement your vision.
|
||||
|
||||
|
||||
|
||||
## 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/checkoutCreate)
|
||||
|
||||
_NOTE: To allow the Adyen Drop-In and Components to load, you have to add `https://*.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
|
||||
|
||||
- Python 3.5 or greater
|
||||
|
||||
Reference in New Issue
Block a user