0001-payfip_ws-consider-cancelled-transaction-as-still-wa.patch
eopayment/payfip_ws.py | ||
---|---|---|
353 | 353 |
result = DENIED |
354 | 354 |
bank_status = 'refused direct debit' |
355 | 355 |
elif response.resultrans == 'A': |
356 |
result = CANCELLED
|
|
356 |
result = WAITING
|
|
357 | 357 |
bank_status = 'cancelled CB' |
358 | 358 |
else: |
359 | 359 |
result = ERROR |
tests/test_payfip_ws.py | ||
---|---|---|
393 | 393 |
assert url == 'https://www.payfip.gouv.fr/tpa/paiementws.web?idop=cc0cb210-1cd4-11ea-8cca-0213ad91a103' |
394 | 394 | |
395 | 395 |
response = backend.response('idop=%s' % payment_id) |
396 |
assert response.result == eopayment.CANCELLED
|
|
396 |
assert response.result == eopayment.WAITING
|
|
397 | 397 |
assert response.bank_status == 'cancelled CB' |
398 | 398 |
assert response.order_id == payment_id |
399 | 399 |
assert response.transaction_id == '201912261758460053903194 cc0cb210-1cd4-11ea-8cca-0213ad91a103' |
... | ... | |
406 | 406 |
response = backend.payment_status( |
407 | 407 |
transaction_id='cc0cb210-1cd4-11ea-8cca-0213ad91a103', transaction_date=now |
408 | 408 |
) |
409 |
assert response.result == eopayment.CANCELLED
|
|
409 |
assert response.result == eopayment.WAITING
|
|
410 | 410 | |
411 | 411 | |
412 | 412 |
def test_normalize_objet(): |
413 |
- |