summaryrefslogtreecommitdiffstats
path: root/eopayment/ogone.py
diff options
context:
space:
mode:
Diffstat (limited to 'eopayment/ogone.py')
-rw-r--r--eopayment/ogone.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/eopayment/ogone.py b/eopayment/ogone.py
index 649e10c..d5e46ea 100644
--- a/eopayment/ogone.py
+++ b/eopayment/ogone.py
@@ -6,7 +6,7 @@ from decimal import Decimal, ROUND_HALF_UP
from common import (PaymentCommon, PaymentResponse, FORM, CANCELLED, PAID,
ERROR, Form, DENIED, ACCEPTED, ORDERID_TRANSACTION_SEPARATOR,
- ResponseError, force_byte, force_text)
+ WAITING, ResponseError, force_byte, force_text)
def N_(message): return message
ENVIRONMENT_TEST = 'TEST'
@@ -560,6 +560,12 @@ class Payment(PaymentCommon):
result = ACCEPTED
elif status == '9':
result = PAID
+ elif len(status) == 2 and status[1] == '1':
+ # Statuses with two digits represent either ‘intermediary'
+ # situations or abnormal events. When the second digit is:
+ # 1, this means the payment processing is on hold. (e.g.
+ # status 91: payment waiting/pending)
+ result = WAITING
else:
self.logger.error('response STATUS=%s NCERROR=%s NCERRORPLUS=%s',
status, error, params.get('NCERRORPLUS', ''))