mollie: map more payment status (#9746)
This commit is contained in:
parent
27e2b29a7f
commit
26758d925f
|
@ -20,7 +20,8 @@ import requests
|
||||||
from six.moves.urllib.parse import parse_qs, urljoin
|
from six.moves.urllib.parse import parse_qs, urljoin
|
||||||
|
|
||||||
from .common import (CANCELLED, ERROR, PAID, URL, PaymentCommon,
|
from .common import (CANCELLED, ERROR, PAID, URL, PaymentCommon,
|
||||||
PaymentException, PaymentResponse, ResponseError)
|
PaymentException, PaymentResponse, ResponseError, WAITING,
|
||||||
|
ACCEPTED)
|
||||||
|
|
||||||
__all__ = ['Payment']
|
__all__ = ['Payment']
|
||||||
|
|
||||||
|
@ -103,6 +104,10 @@ class Payment(PaymentCommon):
|
||||||
result = PAID
|
result = PAID
|
||||||
elif status in ('canceled', 'expired'):
|
elif status in ('canceled', 'expired'):
|
||||||
result = CANCELLED
|
result = CANCELLED
|
||||||
|
elif status in ('open', 'pending'):
|
||||||
|
result = WAITING
|
||||||
|
elif status == 'authorized':
|
||||||
|
result = ACCEPTED
|
||||||
else:
|
else:
|
||||||
result = ERROR
|
result = ERROR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue