summaryrefslogtreecommitdiffstats
path: root/eopayment/__init__.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-03-05 15:21:40 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-03-05 15:25:53 (GMT)
commit1defd73f9b8d4f4347646335e58645c36aba518b (patch)
treeec1b7a5610de351ac124d95a9217f4be1f04bdfd /eopayment/__init__.py
parent84587beaac6779c397e6ca550e1b0de91cf353b1 (diff)
downloadeopayment-1defd73f9b8d4f4347646335e58645c36aba518b.zip
eopayment-1defd73f9b8d4f4347646335e58645c36aba518b.tar.gz
eopayment-1defd73f9b8d4f4347646335e58645c36aba518b.tar.bz2
Remove default logger on payment methods, build it based on the real class module
Diffstat (limited to 'eopayment/__init__.py')
-rw-r--r--eopayment/__init__.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/eopayment/__init__.py b/eopayment/__init__.py
index aaeea65..d00d1f5 100644
--- a/eopayment/__init__.py
+++ b/eopayment/__init__.py
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
-import logging
-
from common import URL, HTML
__all__ = ['Payment', 'URL', 'HTML', '__version__', 'SIPS', 'SYSTEMPAY',
@@ -9,8 +7,6 @@ __all__ = ['Payment', 'URL', 'HTML', '__version__', 'SIPS', 'SYSTEMPAY',
__version__ = "0.0.22"
-LOGGER = logging.getLogger(__name__)
-
SIPS = 'sips'
SYSTEMPAY = 'systempayv2'
SPPLUS = 'spplus'
@@ -66,10 +62,9 @@ class Payment(object):
'''
- def __init__(self, kind, options, logger=LOGGER):
- self.logger = logger
+ def __init__(self, kind, options):
self.kind = kind
- self.backend = get_backend(kind)(options, logger=logger)
+ self.backend = get_backend(kind)(options)
def request(self, amount, **kwargs):
'''Request a payment to the payment backend.