Projet

Général

Profil

0001-misc-add-an-EXPIRED-status-code-47670.patch

Benjamin Dauvergne, 14 octobre 2020 12:43

Télécharger (1,43 ko)

Voir les différences:

Subject: [PATCH 1/3] misc: add an EXPIRED status code (#47670)

 eopayment/__init__.py | 4 ++--
 eopayment/common.py   | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
eopayment/__init__.py
24 24

  
25 25
from .common import (  # noqa: F401
26 26
    URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED,
27
    CANCELED, CANCELLED, ERROR, WAITING, force_text,
27
    CANCELED, CANCELLED, ERROR, WAITING, EXPIRED, force_text,
28 28
    ResponseError, PaymentException,
29 29
)
30 30

  
31 31
__all__ = ['Payment', 'URL', 'HTML', 'FORM', 'SIPS', 'SYSTEMPAY',
32 32
           'TIPI', 'DUMMY', 'get_backend', 'RECEIVED', 'ACCEPTED', 'PAID',
33 33
           'DENIED', 'CANCELED', 'CANCELLED', 'ERROR', 'WAITING',
34
           'get_backends', 'PAYFIP_WS']
34
           'EXPIRED', 'get_backends', 'PAYFIP_WS']
35 35

  
36 36
if six.PY3:
37 37
    __all__.extend(['KEYWARE', 'MOLLIE'])
eopayment/common.py
45 45
CANCELLED = 5
46 46
CANCELED = 5  # typo for backward compatibility
47 47
WAITING = 6
48
EXPIRED = 7
48 49
ERROR = 99
49 50

  
50 51
# separator between order and transaction ids
51
-