Long term solution to prevent customer making payment to a shipping invoice when there is a ongoing dispute

This commit is contained in:
Dillon Ngo
2024-03-14 12:43:58 +08:00
parent 96a089df16
commit 65782ebf8a
2 changed files with 2 additions and 2 deletions
@@ -89,7 +89,7 @@ class CreateGroupsLogic extends AbstractControllerLogic
$invoices = Transaction::whereIn('id', $invoice_ids)->get();
$isInvoicesApprove = $this->checkIfInvoicesAreApprove($invoices);
if(!$isInvoicesApprove){
$response = ['message' => 'Transaction might be suspended, check if there is any dispute in progress.'];
$response = ['message' => 'One of the transactions might be suspended; please check if there are any disputes in progress.'];
return $this->response(['data' => $response]);
}
else{
@@ -62,7 +62,7 @@ class CreatePaymentTransactionLogic extends AbstractControllerLogic
return $this->resourceResponse(new TransactionResource($payment_transaction));
}
$response = ['message' => 'Transaction might be suspended, check if there is any dispute in progress.'];
$response = ['message' => 'A transaction might be suspended; please check if there is any dispute in progress.'];
return $this->response(['data' => $response]);
}