From f1fbcc698215896bebc1d3720d25014d09429718 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 14 Oct 2020 11:30:32 +0200 Subject: [PATCH] misc: add an EXPIRED status code (#47670) --- eopayment/__init__.py | 4 ++-- eopayment/common.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eopayment/__init__.py b/eopayment/__init__.py index e818d2a..3f04451 100644 --- a/eopayment/__init__.py +++ b/eopayment/__init__.py @@ -24,14 +24,14 @@ import six from .common import ( # noqa: F401 URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED, - CANCELED, CANCELLED, ERROR, WAITING, force_text, + CANCELED, CANCELLED, ERROR, WAITING, EXPIRED, force_text, ResponseError, PaymentException, ) __all__ = ['Payment', 'URL', 'HTML', 'FORM', 'SIPS', 'SYSTEMPAY', 'TIPI', 'DUMMY', 'get_backend', 'RECEIVED', 'ACCEPTED', 'PAID', 'DENIED', 'CANCELED', 'CANCELLED', 'ERROR', 'WAITING', - 'get_backends', 'PAYFIP_WS'] + 'EXPIRED', 'get_backends', 'PAYFIP_WS'] if six.PY3: __all__.extend(['KEYWARE', 'MOLLIE']) diff --git a/eopayment/common.py b/eopayment/common.py index 5c4870e..b69d004 100644 --- a/eopayment/common.py +++ b/eopayment/common.py @@ -45,6 +45,7 @@ DENIED = 4 CANCELLED = 5 CANCELED = 5 # typo for backward compatibility WAITING = 6 +EXPIRED = 7 ERROR = 99 # separator between order and transaction ids