debug billplz payment

This commit is contained in:
edmondlang
2023-03-15 19:21:58 +08:00
parent 201a502aa8
commit bf74789bfc
@@ -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 . " </br></br>";
$this->info('Paid transaction - : id: '. $transaction->id . ' - Date: '.$transaction->created_at->format('d-m-Y').' - Amount: '. $transaction->amount);
}
} else {
$totalAmount += $transaction->amount;