From 1cce5f0deb459b29571dde1d1169eaaac78b3d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 31 Jan 2018 15:21:53 +0100 Subject: [PATCH] dummy: add possibility to get WAITING as response status (#21554) --- eopayment/dummy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,