From ef3c738fb13104e35d0cd625f2fe01430f19e375 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 15 Mar 2023 19:58:05 +0800 Subject: [PATCH] debug billplz payment --- app/Console/Commands/debugBillplzFailedPayment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/debugBillplzFailedPayment.php b/app/Console/Commands/debugBillplzFailedPayment.php index ee1cf4b0..729ecfee 100644 --- a/app/Console/Commands/debugBillplzFailedPayment.php +++ b/app/Console/Commands/debugBillplzFailedPayment.php @@ -50,6 +50,8 @@ class debugBillplzFailedPayment extends Command $response = Http::withBasicAuth(config('billplz.api_key').':', '')->get(config('billplz.base_url').'/api/v3/bills/'.$transaction->payment_reference); // dd($response); + + // dd($transaction->owner->owner->owner->reference); if($response->successful()){ $data = $response->json(); @@ -70,6 +72,6 @@ class debugBillplzFailedPayment extends Command public function returnLog($text, $transaction) { $approvalStatusArray = ApprovalStatus::APPROVAL_STATUS_ID; - $this->info($text . ' - id: '. $transaction->id . '. Booking Marking: '. $transaction->owner->marking . ' - Date: '.$transaction->created_at->format('d-m-Y').' - Amount: '. $transaction->amount . '. Current Status: ' . $approvalStatusArray[$transaction->status]); + $this->info($text . ' - id: '. $transaction->id . '. Order Marking: '. $transaction->owner->owner->owner->reference . ' - Date: '.$transaction->created_at->format('d-m-Y').' - Amount: '. $transaction->amount . '. Current Status: ' . $approvalStatusArray[$transaction->status]); } }