Python client for Paynova's API.
Project description
Paynova API Python Client
This is an overview of the Paynova API Python Client using Paynova REST API (Aero). More in-depth information can be found in the Wiki.
Installation
pip install paynova-api-python-client
Python 2.7, Python 3.4, PyPy are supported
Usage
Create Paynova client:
from paynova_api_python_client import Paynova
client = Paynova('<MERCHANT ID>', '<API Password>')
Call service
response = client.create_order({
'orderNumber': 'order-id-0001',
'currencyCode': 'EUR',
'totalAmount': 10
})
Examples
Paynova requester settings
live - If live = True live endpoint will be used
Errors
If Paynova return an error, PaynovaException will be raised
from paynova_api_python_client import PaynovaException
try:
response = client.create_order()
except PaynovaException as e:
# process exception
# e.errorNumber, e.statusKey, e.statusMessage, e.errors
pass
Tests
At first make sure that you are in virtualenv.
Install all dependencies:
make setup
To run tests:
make tests
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for paynova-api-python-client-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1c06a93b3d8066a2a2a35a96c88c0440afd743bd4cf525efe37581139926b1 |
|
MD5 | 4f01af9c9042a9ff46e56a9fb0572bd6 |
|
BLAKE2b-256 | faf09a3731d7ce6323c52da3598608b2b1ad74fd965f9482fabaaab82909e156 |