0001-mollie-map-more-payment-status-9746.patch
eopayment/mollie.py | ||
---|---|---|
20 | 20 |
from six.moves.urllib.parse import parse_qs, urljoin |
21 | 21 | |
22 | 22 |
from .common import (CANCELLED, ERROR, PAID, URL, PaymentCommon, |
23 |
PaymentException, PaymentResponse, ResponseError) |
|
23 |
PaymentException, PaymentResponse, ResponseError, WAITING, |
|
24 |
ACCEPTED) |
|
24 | 25 | |
25 | 26 |
__all__ = ['Payment'] |
26 | 27 | |
... | ... | |
103 | 104 |
result = PAID |
104 | 105 |
elif status in ('canceled', 'expired'): |
105 | 106 |
result = CANCELLED |
107 |
elif status in ('open', 'pending'): |
|
108 |
result = WAITING |
|
109 |
elif status == 'authorized': |
|
110 |
result = ACCEPTED |
|
106 | 111 |
else: |
107 | 112 |
result = ERROR |
108 | 113 | |
109 |
- |