From bf74789bfce94ca901d85922bb965136752143cf Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 15 Mar 2023 19:21:58 +0800 Subject: [PATCH] debug billplz payment --- app/Console/Commands/debugBillplzFailedPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/debugBillplzFailedPayment.php b/app/Console/Commands/debugBillplzFailedPayment.php index cf7a9664..ce481d3a 100644 --- a/app/Console/Commands/debugBillplzFailedPayment.php +++ b/app/Console/Commands/debugBillplzFailedPayment.php @@ -55,7 +55,7 @@ class debugBillplzFailedPayment extends Command $data = $response->json(); if($data['paid']){ if (!in_array($transaction->status, [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])) { - echo 'Paid transaction - : id: '. $transaction->id . ' - Date: '.$transaction->created_at->format('d-m-Y').' - Amount: '. $transaction->amount . "

"; + $this->info('Paid transaction - : id: '. $transaction->id . ' - Date: '.$transaction->created_at->format('d-m-Y').' - Amount: '. $transaction->amount); } } else { $totalAmount += $transaction->amount;