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";