This library provides a Python client to connect with the PayPro API.
- Python >= 3.0
- It also depends on the Requests package
Installation is done through pip you can use this command:
pip install payproIf you want to develop or run the source you can use the supplied Pipfile to install all packages. To run the tests you also need to install the dev packages.
Example of creating a payment:
from paypro import Client
client = Client('YOUR_API_KEY')
client.setCommand('create_payment')
client.setParams(
{
'amount': 500,
'consumer_email': 'test@paypro.nl',
'pay_method': 'ideal/INGBNL2A'
}
)
client.execute()For guides and code examples you can go to https://paypro.nl/developers/docs.
To run the test suite you can execute the tests.py file. This will run the whole suite and generates a JUnit XML file with all test results.
If you want to contribute to this project you can fork the repository. Create a new branch, add your feature and create a pull request. We will look at your request and determine if we want to add it.
