diff --git a/.idea/php.xml b/.idea/php.xml
new file mode 100644
index 0000000..f324872
--- /dev/null
+++ b/.idea/php.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..ccef948
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023-present seven communications GmbH & Co. KG
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 4913a80..7977586 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,13 @@
-![](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "sms77 Logo")
+![](https://www.seven.io/wp-content/uploads/Logo.svg "seven Logo")
-# sms77 SMS for Open Source Point of Sale
+# seven SMS for Open Source Point of Sale
-This code implements sms77 as SMS gateway for sending messages via OSPOS.
+This code implements seven as SMS gateway for sending messages via OSPOS.
## Prerequisites
-- An API Key from [sms77](https://www.sms77.io) - you can create on in
- your [developer dashboard](https://app.sms77.io/developer).
+- An [API key](https://help.seven.io/en/api-key-access) from [seven](https://www.seven.io) - you can create on in
+ your [developer dashboard](https://app.seven.io/developer).
- An existing [OSPOS](https://opensourcepos.org/) installation.
## Installation
@@ -22,7 +22,7 @@ with [Sms_lib.php](Sms_lib.php).
2. Go to `Configuration -> Setup & Conf -> Message`.
3. Set `SMS-API Username` to any value, as the field is not used. Just make sure it's not
empty.
-4. Set `SMS-API Password` to your sms77 API key.
+4. Set `SMS-API Password` to your seven [API key](https://help.seven.io/en/api-key-access).
5. Set `SMS-API Sender ID` to your sender identifier of choice with a maximum length of 11
alphanumeric or 16 numeric characters. This value gets displayed as the sender in the
receivers phone device. Please notice that country specific restrictions may apply,
@@ -34,5 +34,7 @@ See the [screenshot](configuration.png) for an example configuration.
## Support
-Feel free to [contact us](https://www.sms77.io/en/company/contact/) in case you need any
-assistance.
\ No newline at end of file
+Feel free to [contact us](https://www.seven.io/en/company/contact/) in case you need any
+assistance.
+
+[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)
diff --git a/Sms_lib.php b/Sms_lib.php
index 4a12e3b..bde0352 100644
--- a/Sms_lib.php
+++ b/Sms_lib.php
@@ -20,8 +20,8 @@ public function sendSMS($to, $text) {
$from = $this->CI->config->item('msg_src');
$response = false;
- if (!empty($password) && !empty($phone) && !empty($text) && !empty($from)) {
- $ch = curl_init('https://gateway.sms77.io/api/sms');
+ if (!empty($password) && !empty($to) && !empty($text) && !empty($from)) {
+ $ch = curl_init('https://gateway.seven.io/api/sms');
$options = [
CURLOPT_HTTPHEADER => [
'Accept: application/json',
@@ -39,5 +39,3 @@ public function sendSMS($to, $text) {
return $response;
}
}
-
-?>
\ No newline at end of file