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 [email protected]: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=
PAYMENT_ORCH_CLIENT_ID=
PAYMENT_ORCH_CLIENT_SECRET=
PAYMENT_ORCH_INBOUND_PROXY =
PAYMENT_ORCH_OUTBOUND_PROXY =
CUSTOMER_VAULT_ID
- Your vault id for storing credit-card
data
PAYMENT_ORCH_CLIENT_ID
, PAYMENT_ORCH_CLIENT_SECRET
- Credentials For revealing credit-card data on your vault
PAYMENT_ORCH_INBOUND_PROXY
- Full link to the Payment Orchestration Inbound proxy
PAYMENT_ORCH_OUTBOUND_PROXY
- Full link to the Payment Orchestration Outbound proxy'\
pythom -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.