mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Debug approve payment problem
This commit is contained in:
+7
-3
@@ -79,14 +79,18 @@ class ApprovePaymentTransactionLogic extends AbstractControllerLogic
|
||||
|
||||
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('transaction_id')]);
|
||||
|
||||
$document = $transaction->documents()
|
||||
$document = Document::where('owner_id', $transaction->id)
|
||||
->where('owner_type', get_class($transaction))
|
||||
->where('status', ApprovalStatus::PENDING_VERIFICATION)
|
||||
->first();
|
||||
Log::info("document 1: ".json_encode($document));
|
||||
|
||||
Log::info("document ".json_encode($document));
|
||||
// $document = $transaction->documents()
|
||||
// ->where('status', ApprovalStatus::PENDING_VERIFICATION)
|
||||
// ->first();
|
||||
// Log::info("document 2: ".json_encode($document));
|
||||
|
||||
// $doc = Document::where('id', $document->id)->lockForUpdate()->first();
|
||||
|
||||
// Log::info("doc ".json_encode($doc));
|
||||
|
||||
if($status === 'approve') {
|
||||
|
||||
Reference in New Issue
Block a user