mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Long term solution to prevent customer making payment to a shipping invoice when there is a ongoing dispute
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user