Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: akolpakov/paynova-api-python-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.1
Choose a base ref
...
head repository: akolpakov/paynova-api-python-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 7 commits
  • 11 files changed
  • 1 contributor

Commits on Mar 4, 2015

  1. test for python 2.6, 3.3

    akolpakov committed Mar 4, 2015
    Copy the full SHA
    c925068 View commit details
  2. Update README.md

    akolpakov committed Mar 4, 2015
    Copy the full SHA
    35c7389 View commit details

Commits on Mar 10, 2015

  1. pypandoc dependency

    akolpakov committed Mar 10, 2015
    Copy the full SHA
    cfcb995 View commit details

Commits on May 29, 2015

  1. Update README.md

    fix documentation
    akolpakov committed May 29, 2015
    Copy the full SHA
    668f1d4 View commit details
  2. Update README.md

    akolpakov committed May 29, 2015
    Copy the full SHA
    f5f229a View commit details

Commits on Jul 9, 2015

  1. Copy the full SHA
    0e32939 View commit details

Commits on Jul 16, 2015

  1. make upload

    akolpakov committed Jul 16, 2015
    Copy the full SHA
    9302776 View commit details
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -32,3 +32,6 @@ tox:

#docs:
#@cd paynova_api_python_client/docs && make html && open _build/html/index.html

upload:
@python setup.py sdist upload
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,11 +2,13 @@

This is an overview of the Paynova API Python Client using [Paynova REST API](http://docs.paynova.com/display/API/Paynova+API+Home) (Aero). More in-depth information can be found in the [Wiki](https://github.com/Paynova/paynova-api-php-client/wiki).

For Django, see [django-paynova](https://github.com/akolpakov/django-paynova) package

# Installation
```
pip install paynova-api-python-client
```
Python 2.7, Python 3.4, PyPy are supported
Python 2.6, 2.7, 3.3, 3.4, PyPy are supported

# Usage
Create Paynova client:
@@ -56,8 +58,8 @@ make setup
```
To run tests:
```
make tests
make test
```

# License
[MIT licence](./LICENSE)
[MIT licence](./LICENSE)
2 changes: 1 addition & 1 deletion examples/create_detailed_order.py
Original file line number Diff line number Diff line change
@@ -58,4 +58,4 @@
except PaynovaException as e:
# process exception
# e.errorNumber, e.statusKey, e.statusMessage, e.errors
pass
pass
2 changes: 1 addition & 1 deletion examples/create_simple_order.py
Original file line number Diff line number Diff line change
@@ -24,4 +24,4 @@
except PaynovaException as e:
# process exception
# e.errorNumber, e.statusKey, e.statusMessage, e.errors
pass
pass
2 changes: 1 addition & 1 deletion examples/initial_payment.py
Original file line number Diff line number Diff line change
@@ -45,4 +45,4 @@
except PaynovaException as e:
# process exception
# e.errorNumber, e.statusKey, e.statusMessage, e.errors
pass
pass
2 changes: 1 addition & 1 deletion paynova_api_python_client/__init__.py
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@
# Copyright (c) 2015, Andrey Kolpakov <aakolpakov@gmail.com>

from .paynova import Paynova
from .exceptions import PaynovaException
from .exceptions import PaynovaException
2 changes: 1 addition & 1 deletion paynova_api_python_client/exceptions.py
Original file line number Diff line number Diff line change
@@ -19,4 +19,4 @@ def __init__(self, status):
self.statusKey = status.get('statusKey')
self.statusMessage = status.get('statusMessage')
self.errors = status.get('errors')
self.exceptionDetails = status.get('exceptionDetails')
self.exceptionDetails = status.get('exceptionDetails')
2 changes: 1 addition & 1 deletion paynova_api_python_client/paynova.py
Original file line number Diff line number Diff line change
@@ -149,4 +149,4 @@ def remove_customer_profile_card(self, params):
Remove Customer Profile Card
Docs: http://docs.paynova.com/display/API/Remove+Customer+Profile+Card
"""
return self.request('DELETE', 'customerprofiles/{profileId}/cards/{cardId}', params)
return self.request('DELETE', 'customerprofiles/{profileId}/cards/{cardId}', params)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
'coveralls',
'sphinx',
'httmock',
'pypandoc',
]

setup(
2 changes: 1 addition & 1 deletion tests/test_paynova_services.py
Original file line number Diff line number Diff line change
@@ -170,4 +170,4 @@ def test_remove_customer_profile_card(self):
'cardId': '1'
}
response = self.paynova.remove_customer_profile_card(params)
expect(response).not_to_be_null()
expect(response).not_to_be_null()
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@
# Copyright (c) 2015, Andrey Kolpakov <aakolpakov@gmail.com>

[tox]
envlist = py27, py34, pypy
envlist = py26, py27, py33, py34, pypy

[testenv]
commands =
make setup
make test
make test