Prevent parallel refunds for the same order (Z#23152965) (#4136)

This commit is contained in:
Raphael Michel
2024-05-07 14:32:02 +02:00
committed by GitHub
parent 0c09cccd4f
commit 0e20d897d2
4 changed files with 305 additions and 245 deletions

View File

@@ -72,6 +72,7 @@ def test_perform_refund(client, env):
r = client.post(url, {
f"refund-{payment.id}": "23.00",
"start-mode": "full",
"last_known_refund_id": 0,
"perform": True,
})
assert r.status_code == 302
@@ -102,6 +103,7 @@ def test_cannot_perform_refund_with_invalid_iban(client, env):
r = client.post(url, {
f"refund-{payment.id}": "23.00",
"start-mode": "full",
"last_known_refund_id": 0,
"perform": True,
})
assert r.status_code == 200 # no successfull POST