summaryrefslogtreecommitdiffstats
path: root/eopayment/__init__.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-02-18 15:05:58 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-02-18 15:29:01 (GMT)
commita7dcc7a5e50f599f4bb35afa7c82578f9189bc2f (patch)
tree5c83bce9574e8a1e3364590995cd649b663dbd3d /eopayment/__init__.py
parent3b3f63907d7ba309b55e69c5eeda38076664de95 (diff)
downloadeopayment-a7dcc7a5e50f599f4bb35afa7c82578f9189bc2f.zip
eopayment-a7dcc7a5e50f599f4bb35afa7c82578f9189bc2f.tar.gz
eopayment-a7dcc7a5e50f599f4bb35afa7c82578f9189bc2f.tar.bz2
general: give same signature to all Payment object constructors (#10030)
Diffstat (limited to 'eopayment/__init__.py')
-rw-r--r--eopayment/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/eopayment/__init__.py b/eopayment/__init__.py
index 39441c8..95ec008 100644
--- a/eopayment/__init__.py
+++ b/eopayment/__init__.py
@@ -75,9 +75,9 @@ class Payment(object):
'''
- def __init__(self, kind, options):
+ def __init__(self, kind, options, logger=None):
self.kind = kind
- self.backend = get_backend(kind)(options)
+ self.backend = get_backend(kind)(options, logger=logger)
def request(self, amount, **kwargs):
'''Request a payment to the payment backend.