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();