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 contains 4 flows:
- Default flow: Checkout create
financial_instruments
in Payment Orchestration application - Saved Cards flow: Allow usage of pre-saved
financial_instruments
- Transfer flow: Checkout complete payment flow, create
financial_instruments
and make atransfer
- 3DS flow: example how client application can works with VGS 3DS API
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.
- If Inbound routes where not created yet by VGS Support - create Inbound routes from .
yaml files. You can find them in
./routes
folder.
CUSTOMER_VAULT_ID=
PAYMENT_ORCH_CLIENT_ID=
PAYMENT_ORCH_CLIENT_SECRET=
CUSTOMER_VAULT_ID
- Your vault id for storing cards dataPAYMENT_ORCH_CLIENT_ID
,PAYMENT_ORCH_CLIENT_SECRET
- Payment Orchestration documentationPAYMENT_ORCH_APP_DOMAIN
- Domain of Payment Orchestration application withouthttps
orhttp
python -m venv venv
. ./venv/bin/activate
export FLASK_APP=app
pip install -r ./requirements.txt
flask run
- Open
http://localhost:5000
in browser
docker-compose up --build
- 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
Example shows how to work with VGS 3DS API Before start, make shure, that you create one of the possible 3DS Provider: Adyen, PAAY.co, 3dsecure.io
For more details on how to build your payments flow, check this guide out.