summaryrefslogtreecommitdiff
path: root/postgresqleu/trustlypayment/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'postgresqleu/trustlypayment/api.py')
-rw-r--r--postgresqleu/trustlypayment/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/postgresqleu/trustlypayment/api.py b/postgresqleu/trustlypayment/api.py
index 3f248132..a4fca9fd 100644
--- a/postgresqleu/trustlypayment/api.py
+++ b/postgresqleu/trustlypayment/api.py
@@ -8,9 +8,11 @@ from Crypto.PublicKey import RSA
import base64
import urllib2
+
class TrustlyException(Exception):
pass
+
class TrustlyWrapper(object):
def __init__(self, apibase, username, password, privatekey, publickey, notificationurl, currency='EUR', hold_notifications=False):
self.apibase = apibase
@@ -61,7 +63,6 @@ class TrustlyWrapper(object):
else:
raise TrustlyException('Failed to refund orderid {0}'.format(orderid))
-
def get_balance(self):
r = self.apicall('Balance', {})
balance = None