From 26758d925fc195f693d583be676277b65a10808e Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sun, 11 Oct 2020 15:31:59 +0200 Subject: [PATCH] mollie: map more payment status (#9746) --- eopayment/mollie.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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