callbackBillplzProcessor = $callbackBillplzProcessor; $this->callbackBillplzDataPatchProcessor = $callbackBillplzDataPatchProcessor; } /** * Execute the console command. * * @return int */ public function handle() { ini_set('memory_limit', '-1'); $this->outputArray = []; $start = new Carbon(); //Transaction fix with this one time fix command: 15205, 16803, 17310, 20960 //This transaction, 16803 has approve payment but not its owner, shipping invoice $transaction = Transaction::whereIn('id', [20960])->first(); $this->info(Carbon::now() . ' : One time fix failled callback from billplz for transaction with id 20960 cron started.'); if($transaction && $transaction->id == 20960){ $this->info(Carbon::now() . ' : 20960.'); $status = ApprovalStatus::APPROVED; // $this->callbackBillplzProcessor->execute($transaction, $status); $this->callbackBillplzDataPatchProcessor->execute($transaction, $status); } $end = new Carbon(); $elapsedTime = $start->diff($end)->format('%H:%I:%S'); $this->info(Carbon::now() . ' : One time fix failled callback from billplz for transaction with id 20960 cron ended. ElapsedTime: ' . $elapsedTime); } }