From 0f6ca6b247fc4fef187a690a448bbabd8b5da5ad Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Tue, 4 Mar 2025 12:48:23 +0530 Subject: [PATCH] FIX_UPDATE_QUERY_PAYMENT_STATUS --- app/Controllers/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 793d890e..6a422131 100755 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -608,7 +608,7 @@ public function create_or_update_subscription($invoice_id,$invoice_status, $msg_ public function checkPaymentStatus($membership_id){ log_message("error","Function Called"); try { - $id = $this->paymentModel->where('membership_id', $membership_id)->first()['id']; + $id = $this->paymentModel->where('membership_id', $membership_id)->where('payment_status','Not Received')->first()['id']; if ($id) { $data['status'] = 999999; $data['payment_status'] = "Approved";