summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-10-11 13:31:59 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-10-12 13:58:44 (GMT)
commit26758d925fc195f693d583be676277b65a10808e (patch)
tree969390bf6450e22880360e133a71925ac5c0cd83
parent27e2b29a7f0c017a41d846ac59e8808325176ea3 (diff)
downloadeopayment-26758d925fc195f693d583be676277b65a10808e.zip
eopayment-26758d925fc195f693d583be676277b65a10808e.tar.gz
eopayment-26758d925fc195f693d583be676277b65a10808e.tar.bz2
mollie: map more payment status (#9746)
-rw-r--r--eopayment/mollie.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/eopayment/mollie.py b/eopayment/mollie.py
index bf9270e..5395a1b 100644
--- a/eopayment/mollie.py
+++ b/eopayment/mollie.py
@@ -20,7 +20,8 @@ import requests
from six.moves.urllib.parse import parse_qs, urljoin
from .common import (CANCELLED, ERROR, PAID, URL, PaymentCommon,
- PaymentException, PaymentResponse, ResponseError)
+ PaymentException, PaymentResponse, ResponseError, WAITING,
+ ACCEPTED)
__all__ = ['Payment']
@@ -103,6 +104,10 @@ class Payment(PaymentCommon):
result = PAID
elif status in ('canceled', 'expired'):
result = CANCELLED
+ elif status in ('open', 'pending'):
+ result = WAITING
+ elif status == 'authorized':
+ result = ACCEPTED
else:
result = ERROR