Fix SystempayCreditTransactionUpdate
This commit is contained in:
parent
9f58c867e1
commit
d771f14cce
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue