feat(payments/mollie): Next-Gen-Webhooks (JSON, HMAC-SHA256 X-Mollie-Signature) neben klassischem id=tr_; fix: Bestellbestaetigung aus Webhook-/CLI-Kontext (Layout-Objekt im Bootstrap); markCancelled idempotent

This commit is contained in:
Thomas Bartelt
2026-09-27 21:51:11 +02:00
parent b8111a1e7f
commit 5f3bbc2c45
3 changed files with 94 additions and 8 deletions
+5
View File
@@ -273,6 +273,11 @@ abstract class AbstractProvider implements ProviderInterface
if (!$tx || $tx->status === 'paid') {
return;
}
// 27.09.2026: idempotent -- Rueckkehr UND Webhook melden denselben Abbruch, der
// Stornotext wurde sonst zweimal an die Bestellung gehaengt (Mollie-Test 290617).
if ($tx->status === 'cancelled') {
return;
}
$this->setTransactionStatus($reference, 'cancelled', $why);
$orderId = (int) $tx->order_id;
// 6 = storniert (wie v1-PayPal im Cancel-Zweig).