diff --git a/app/Controllers/Payment.php b/app/Controllers/Payment.php index d3f63f51..bb396f40 100644 --- a/app/Controllers/Payment.php +++ b/app/Controllers/Payment.php @@ -508,18 +508,18 @@ public function paymentStatus(){ } -public function testSMS(){ - $mobile_number = '916382156701'; - $name = "Srinivas"; - $expiryDate = "10/10/2025"; - $link = "https://bit.ly/44Iy4Zm"; +// public function testSMS(){ +// $mobile_number = '916382156701'; +// $name = "Srinivas"; +// $expiryDate = "10/10/2025"; +// $link = "https://bit.ly/44Iy4Zm"; - // Exactly matching the approved template - $message = "Hi {$name}, your subscription for Pusthakam scheme is about to expire on {$expiryDate}. Renew now to continue enjoying our books for one more year. Tap here to renew: {$link} -Vijayabharatham Prasuram"; +// // Exactly matching the approved template +// $message = "Hi {$name}, your subscription for Pusthakam scheme is about to expire on {$expiryDate}. Renew now to continue enjoying our books for one more year. Tap here to renew: {$link} -Vijayabharatham Prasuram"; - $status = $this->sendSMSHelper->sendSMS($message,$mobile_number); - echo $status; -} +// $status = $this->sendSMSHelper->sendSMS($message,$mobile_number); +// echo $status; +// } } diff --git a/app/Helpers/SendSMSHelper.php b/app/Helpers/SendSMSHelper.php index 35a2a31c..6e3ed32c 100644 --- a/app/Helpers/SendSMSHelper.php +++ b/app/Helpers/SendSMSHelper.php @@ -105,7 +105,7 @@ class SendSMSHelper } - public function saveSMSHistory($output,$mobile_number,$message,$campaignID = null,$membershipID){ + public function saveSMSHistory($output,$mobile_number,$message,$campaignID = null,$membershipID = null){ $where = [ 'mobile_no' => $mobile_number,