Fix SystempayCreditTransactionUpdate

This commit is contained in:
Jérémy Munsch 2023-05-15 11:47:48 +02:00
parent 9f58c867e1
commit d771f14cce
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

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