Before running the application, make sure, that you have access to your Payment Orchestration Instance & API and all prerequisites are met, gateways and rules are set and you have access credentials to authenticate.
This demo is built with:
- Clone the repo
git clone git@github.com:vgs-samples/payment-orchestration-demo.git
- Create .env file in the root project folder
- Fill in the file with the necessary configuration variables shown below.
- Create Inbound and Outbound routes from .yaml files. You can find it in
./routes
folder
CUSTOMER_VAULT_ID=
CUSTOMER_VAULT_ACCESS_CREDS_USERNAME=
CUSTOMER_VAULT_ACCESS_CREDS_SECRET=
PAYMENT_ORCH_CLIENT_ID=
PAYMENT_ORCH_CLIENT_SECRET=
PAYMENT_ORCH_APP_DOMAIN=
CUSTOMER_VAULT_ID
- Your vault id for storing credit-card
data
CUSTOMER_VAULT_ACCESS_CREDS_USERNAME
, CUSTOMER_VAULT_ACCESS_CREDS_SECRET
- Vault access credentials, user id and secret
PAYMENT_ORCH_CLIENT_ID
, PAYMENT_ORCH_CLIENT_SECRET
- [Credentials](https://www.verygoodsecurity.com/docs/settings/
PAYMENT_ORCH_APP_DOMAIN
- Domain of your Payment Orchescration application without https
or http
python -m venv venv
. ./venv/bin/activate
export FLASK_APP=app
pip install -r ./requirements.txt
flask run
ngrok http 5000
for sharing your localhost worldwide- Setup ngrok link as upstream for Inbound route on the Dashboard
- Open
http://localhost:5000
in browser
docker-compose up --build
ngrok http 5000
for sharing your localhost worldwide- Setup ngrok link as upstream for Inbound route on the Dashboard
- Open
http://localhost:5000
in browser
Fill and submit the Universal Checkout form with a test payment card. Please note that a test payment card depends on the gateway you use and can be different if you want to try a successful transaction flow.
cardholder: Any Name
cc: 4111 1111 1111 1111
exp.date: 02/23
cvc: 123
For more details on how to build your payments flow, check this guide out.