summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-01-31 14:21:53 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-01-31 14:21:53 (GMT)
commit1cce5f0deb459b29571dde1d1169eaaac78b3d46 (patch)
treed45f796ff7b5f0bbc598eb47787fd72cc9d5002e
parent79ac559a8669c47800968a31655c5efe812fc791 (diff)
downloadeopayment-1cce5f0deb459b29571dde1d1169eaaac78b3d46.zip
eopayment-1cce5f0deb459b29571dde1d1169eaaac78b3d46.tar.gz
eopayment-1cce5f0deb459b29571dde1d1169eaaac78b3d46.tar.bz2
dummy: add possibility to get WAITING as response status (#21554)v1.23
-rw-r--r--eopayment/dummy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/eopayment/dummy.py b/eopayment/dummy.py
index 816d941..2ed8655 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, ResponseError
+from common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError
__all__ = [ 'Payment' ]
@@ -134,6 +134,8 @@ class Payment(PaymentCommon):
content = None
signed = signed or self.consider_all_response_signed
result = PAID if 'ok' in form else ERROR
+ if 'waiting' in form:
+ result = WAITING
response = PaymentResponse(result=result,
signed=signed,