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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user