misc: add an EXPIRED status code (#47670)

This commit is contained in:
Benjamin Dauvergne 2020-10-14 11:30:32 +02:00
parent 7f54812533
commit f1fbcc6982
2 changed files with 3 additions and 2 deletions

View File

@ -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'])

View File

@ -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