From d771f14cce3140b661de994ba3218b2812e9ecb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 15 May 2023 11:47:48 +0200 Subject: [PATCH] Fix SystempayCreditTransactionUpdate --- app/Jobs/Payment/SystempayCreditTransactionUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Payment/SystempayCreditTransactionUpdate.php b/app/Jobs/Payment/SystempayCreditTransactionUpdate.php index 5c772a0..479040a 100644 --- a/app/Jobs/Payment/SystempayCreditTransactionUpdate.php +++ b/app/Jobs/Payment/SystempayCreditTransactionUpdate.php @@ -63,13 +63,13 @@ class SystempayCreditTransactionUpdate switch ($reponseType) { case ResponseType::acceptedPayment(): + case ResponseType::cancelledPayment(): $this->currentTransaction->status = TransactionStatus::validated(); $this->currentTransaction->saveOrFail(); $this->currentTransaction->mutateOrderStatus(); break; case ResponseType::expiredPayment(): case ResponseType::refusedPayment(): - case ResponseType::cancelledPayment(): $this->currentTransaction->status = TransactionStatus::failed(); $this->currentTransaction->saveOrFail(); $this->currentTransaction->mutateOrderStatus();