Skip to content

clintonshane84/payment-gateway-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payment-gateway-simulator

The following applies to vscode and other terminal users.

Start by creating a python runtime environment.

1. Create a new Python runtime environment:
python3 -m venv venv
2. switch to the new runtime environment with the following:
source venv/bin/activate
3. Then install required Python libraries with:
pip install --upgrade pip; pip3 install -r requirements.txt
4. Create a new .env document with:
cp env.sample .env
Note:

Be sure to edit values to match your environment.

5. Run the server with:
flask run
You can test you api endpoint using the following example:
curl -X GET 'http://127.0.0.1:5000/v1/3ds_challenge/12345'
if successful, you can expect this json response:
{"error":"Transaction not found"}
Exit environment:
deactivate

About

A mock of the Peach Payment Gateway service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors