From ee48f51a46ce0baf1fb607887de84f6e2ab8dad5 Mon Sep 17 00:00:00 2001 From: Afiq Hamzah Date: Tue, 12 Nov 2024 09:24:31 +0800 Subject: [PATCH] Fix status set when customer failed to pay the bill from billplz - Changes made because the cronjob searches for the status NOT PAID to update payment status from BillPlz --- app/Http/Controllers/BayaranController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/BayaranController.php b/app/Http/Controllers/BayaranController.php index 6c4557e..4ff0151 100644 --- a/app/Http/Controllers/BayaranController.php +++ b/app/Http/Controllers/BayaranController.php @@ -206,7 +206,7 @@ class BayaranController extends Controller if ($isBillUnpaid) { Http::arrahn()->put('/api/online/transaction', [ 'billplz_id' => $data['id'], - 'status' => 'UNSUCCESSFUL', + 'status' => 'NOT PAID', 'paid_at' => null, ]);