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_instrumentsin Payment Orchestration application - Saved Cards flow: Allow usage of pre-saved
financial_instruments - Transfer flow: Checkout complete payment flow, create
financial_instrumentsand 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
.envfile 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
./routesfolder.
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 withouthttpsorhttp
python -m venv venv. ./venv/bin/activateexport FLASK_APP=apppip install -r ./requirements.txtflask run- Open
http://localhost:5000in browser
docker-compose up --build- Open
http://localhost:5000in 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.
