Skip to content

TestingPays/realex_python_example_app

Repository files navigation

Realex Python Example Application

Integrated example application using Realex's Auth API.

Requirements

This demo application will run with either 2.7.X and 3.6.X You can have multiple Python versions (2.x and 3.x) installed on the same system without problems. See Python Virtual Environments for more information.

Running

Requirements.txt

See requirements.txt above for required packages or install using pip install as shown here.

$ pip install -r requirements.txt

API Keys

Prior to running the server it is necessary to add your Realex API keys, or use your Testing Pays API key. By having setting file split between dev and prod this makes pointing to Testing Pays while in development mode seamless. Add the Testing Pays API key to TESTINGPAYS_API_KEY in the dev.py found in tp_python_realex_example/settings.

Database migrations

Prior to starting the django server it is necessary to run data migrations. This can be done by running the following migrate command.

$ python manage.py migrate --settings=tp_python_realex_example.settings.dev

Run Server

$ python manage.py runserver 8888 --settings=tp_python_realex_example.settings.dev
  • Note: To use an alternative port is used, then also be sure to update the REALEX_CALLBACK_URL within the dev.py settings file as the callback is also points to this server.

Using it with Testing Pays

Testing Pays lets you test and simulate more than you would be able to do with regular API sandboxes. The application is setup so you can avail using your Testing Pays API key to test and prepare for errors, validation issues, server errors or even network outages.

About

Realex example application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published