PayPro provides a Python client that you can use to connect with the PayPro API. The client is opensource and the source code can be found on GitHub.
The installation of the Python client goes through PyPi.
You can install the package through
pip like this:
1 $ pip install paypro
If you use a Pipfile you can add this:
1 2 3 4 5 6 [[source]] url = 'https://pypi.python.org/simple' verify_ssl = true [packages] paypro = '*'
Then run Pipenv install:
1 $ pipenv install
In order to use the PayPro client put this on top of your file.
1 from paypro import Client
You should now be able to create a
Client object in your code.
1 client = Client('API_KEY')
You can now use this client object to create API calls to the PayPro API.