Projet

Général

Profil

0002-mollie-map-more-payment-status-9746.patch

Benjamin Dauvergne, 11 octobre 2020 15:40

Télécharger (1,15 ko)

Voir les différences:

Subject: [PATCH 2/3] mollie: map more payment status (#9746)

 eopayment/mollie.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
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
-