diff --git a/eopayment/__init__.py b/eopayment/__init__.py index 7a15cbc..1f6d89c 100644 --- a/eopayment/__init__.py +++ b/eopayment/__init__.py @@ -2,8 +2,8 @@ import logging -from common import (URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED, - CANCELED, CANCELLED, ERROR, WAITING, ResponseError, force_text) +from .common import (URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED, + CANCELED, CANCELLED, ERROR, WAITING, ResponseError, force_text) __all__ = ['Payment', 'URL', 'HTML', 'FORM', 'SIPS', 'SYSTEMPAY', 'SPPLUS', 'TIPI', 'DUMMY', 'get_backend', 'RECEIVED', 'ACCEPTED', diff --git a/eopayment/dummy.py b/eopayment/dummy.py index 2ed8655..2b79258 100644 --- a/eopayment/dummy.py +++ b/eopayment/dummy.py @@ -10,7 +10,7 @@ try: except ImportError: from urlparse import parse_qs -from common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError +from .common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError __all__ = [ 'Payment' ] diff --git a/eopayment/ogone.py b/eopayment/ogone.py index 900d348..8edb106 100644 --- a/eopayment/ogone.py +++ b/eopayment/ogone.py @@ -4,7 +4,7 @@ import string import urlparse from decimal import Decimal, ROUND_HALF_UP -from common import (PaymentCommon, PaymentResponse, FORM, CANCELLED, PAID, +from .common import (PaymentCommon, PaymentResponse, FORM, CANCELLED, PAID, ERROR, Form, DENIED, ACCEPTED, ORDERID_TRANSACTION_SEPARATOR, WAITING, ResponseError, force_byte, force_text) def N_(message): return message diff --git a/eopayment/paybox.py b/eopayment/paybox.py index 2ebed40..53bf456 100644 --- a/eopayment/paybox.py +++ b/eopayment/paybox.py @@ -16,7 +16,7 @@ from gettext import gettext as _ import string import warnings -from common import (PaymentCommon, PaymentResponse, FORM, PAID, ERROR, Form, +from .common import (PaymentCommon, PaymentResponse, FORM, PAID, ERROR, Form, ORDERID_TRANSACTION_SEPARATOR, ResponseError) __all__ = ['sign', 'Payment'] diff --git a/eopayment/sips.py b/eopayment/sips.py index ef5f1c6..bc17b16 100644 --- a/eopayment/sips.py +++ b/eopayment/sips.py @@ -9,8 +9,8 @@ import os.path import uuid import warnings -from common import PaymentCommon, HTML, PaymentResponse, ResponseError -from cb import CB_RESPONSE_CODES +from .common import PaymentCommon, HTML, PaymentResponse, ResponseError +from .cb import CB_RESPONSE_CODES ''' Payment backend module for the ATOS/SIPS system used by many Frenck banks. diff --git a/eopayment/sips2.py b/eopayment/sips2.py index 584ec56..1e4cc52 100644 --- a/eopayment/sips2.py +++ b/eopayment/sips2.py @@ -11,7 +11,7 @@ from gettext import gettext as _ import requests import warnings -from common import (PaymentCommon, FORM, Form, PaymentResponse, PAID, ERROR, +from .common import (PaymentCommon, FORM, Form, PaymentResponse, PAID, ERROR, CANCELED, ResponseError) __all__ = ['Payment'] diff --git a/eopayment/spplus.py b/eopayment/spplus.py index d6e7b48..854a96c 100644 --- a/eopayment/spplus.py +++ b/eopayment/spplus.py @@ -13,7 +13,7 @@ import re import warnings import Crypto.Cipher.DES -from common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED, +from .common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED, PAID, ERROR, ResponseError) def N_(message): return message diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py index ccf38d0..d9153a4 100644 --- a/eopayment/systempayv2.py +++ b/eopayment/systempayv2.py @@ -8,9 +8,9 @@ import urlparse import warnings from gettext import gettext as _ -from common import (PaymentCommon, PaymentResponse, PAID, ERROR, FORM, Form, - ResponseError, force_text, force_byte) -from cb import CB_RESPONSE_CODES +from .common import (PaymentCommon, PaymentResponse, PAID, ERROR, FORM, Form, + ResponseError, force_text, force_byte) +from .cb import CB_RESPONSE_CODES __all__ = ['Payment'] diff --git a/eopayment/tipi.py b/eopayment/tipi.py index 3a3b571..2839f7c 100644 --- a/eopayment/tipi.py +++ b/eopayment/tipi.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from decimal import Decimal, ROUND_DOWN -from common import (PaymentCommon, PaymentResponse, URL, PAID, DENIED, +from .common import (PaymentCommon, PaymentResponse, URL, PAID, DENIED, CANCELLED, ERROR, ResponseError) from urllib import urlencode from urlparse import parse_qs