|
| 1 | +===== |
| 2 | +Glory |
| 3 | +===== |
| 4 | + |
| 5 | +**Glory** :doc:`cash machines <../cash_machines>` enable the automation of cash transactions. |
| 6 | + |
| 7 | +.. note:: |
| 8 | + - The integration with the Glory cash machine only supports basic functions, such as cash |
| 9 | + transactions and cash count checks. |
| 10 | + - Tasks like filling and emptying the machine must be performed directly through the cash machine |
| 11 | + interface. |
| 12 | + |
| 13 | +.. _pos/glory/configuration: |
| 14 | + |
| 15 | +Configuration |
| 16 | +============= |
| 17 | + |
| 18 | +Cash machine settings |
| 19 | +--------------------- |
| 20 | + |
| 21 | +#. Power on the cash machine, which briefly displays its IP address at the bottom of the screen. |
| 22 | + Note it down for later. |
| 23 | + |
| 24 | + .. note:: |
| 25 | + The IP address should be formatted as `###.###.#.##` (e.g., `192.168.0.25`). |
| 26 | + |
| 27 | +#. Navigate to the cash machine's homepage by entering its IP address as the URL in `HTTPS` (e.g., |
| 28 | + `https://192.168.0.25`), and log in with your Glory credentials. |
| 29 | +#. As long as the certificate is not imported, a warning page appears when trying to access the |
| 30 | + machine's homepage. Bypass it by clicking :guilabel:`Advanced` and then :guilabel:`Proceed to |
| 31 | + [IP address] (unsafe)`. |
| 32 | +#. From the Glory homepage, go to :guilabel:`Host Configuration` and ensure the :guilabel:`Network` |
| 33 | + setting is set to :guilabel:`MANUAL`, meaning the IP address is static. |
| 34 | +#. Then, navigate to :guilabel:`SSL Configuration` and scroll down to the :guilabel:`HTTPS Server |
| 35 | + Setting` section. |
| 36 | + |
| 37 | + #. In parallel, open the terminal and verify that *OpenSSL* is installed. Type `openssl` and |
| 38 | + press enter. If installed, this command displays a `help` menu listing all available OpenSSL |
| 39 | + commands. If nothing happens, `install it <https://openssl-library.org/source/>`_. |
| 40 | + #. Then, paste the following command and press `Enter` to generate and download the certificate |
| 41 | + and private key. Ensure that you replace the demo IP address with the cash machine’s actual IP |
| 42 | + address. |
| 43 | + |
| 44 | + .. code-block:: bash |
| 45 | +
|
| 46 | + openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/CN=192.168.0.25" -addext "subjectAltName = IP:192.168.0.25" |
| 47 | +
|
| 48 | + .. important:: |
| 49 | + The self-signed SSL certificate and key pair must use the same static IP address as the |
| 50 | + cash machine. |
| 51 | + |
| 52 | +#. Once the files are generated, from the :guilabel:`HTTPS Server Setting` section, upload |
| 53 | + `cert.pem` as the :guilabel:`Certificate` and `key.pem` as the :guilabel:`Private Key`. |
| 54 | +#. Go to :guilabel:`WebApp Configuration` and ensure the :guilabel:`Interface` setting from the |
| 55 | + :guilabel:`A: Nodejs Setting` section is set to :guilabel:`Enable`. |
| 56 | +#. Then, adjust the following settings depending on the POS setup: |
| 57 | + |
| 58 | + - If **multiple POS** are connected to the same cash machine, go to :guilabel:`App |
| 59 | + Configuration`, scroll down to the :guilabel:`SOAP IF Setting`, and ensure :guilabel:`Session |
| 60 | + mode` and :guilabel:`Occupy mode` are both set to :guilabel:`Enable`. |
| 61 | + - If **a dedicated user** has been set up on the cash machine for Odoo, go to :guilabel:`App |
| 62 | + Configuration`, scroll down to the :guilabel:`SOAP IF Setting` section, and :guilabel:`Enable` |
| 63 | + the :guilabel:`User check` setting. |
| 64 | +#. Restart the cash machine to apply the new settings. |
| 65 | + |
| 66 | +.. note:: |
| 67 | + As this setup is complex and may involve advanced knowledge of Glory hardware, it is advisable to |
| 68 | + consult the Glory integration partner for configuration if there is any uncertainty. |
| 69 | + |
| 70 | +Import self-signed certificates |
| 71 | +------------------------------- |
| 72 | + |
| 73 | +For a long-term solution, the generated certificates must be imported into the device running the |
| 74 | +POS. The import process is heavily dependent on the :abbr:`OS (Operating System)` and the browser. |
| 75 | + |
| 76 | +.. tabs:: |
| 77 | + |
| 78 | + .. tab:: Windows OS |
| 79 | + |
| 80 | + Windows manages certificates, which means that self-signed certificates must be imported |
| 81 | + from the certification files rather than the browser. To do so, |
| 82 | + |
| 83 | + #. Open the Windows File Explorer and locate the downloaded certification files. |
| 84 | + #. Right-click on the certification files and select :guilabel:`Install Certificate`. |
| 85 | + #. Specify the certificate location and select the installation scope: either the |
| 86 | + :guilabel:`Current User` only or all users (:guilabel:`Local Machine`). Then, click |
| 87 | + :guilabel:`Next`. |
| 88 | + #. On the `Certificate Store` screen, tick :guilabel:`Place all certificates in the following |
| 89 | + store`, click :guilabel:`Browse...`, and select :guilabel:`Trusted Root Certification |
| 90 | + Authorities`. |
| 91 | + #. Click :guilabel:`Finish` and accept the pop-up security window. |
| 92 | + #. Restart the computer to make sure that the changes are applied. |
| 93 | + |
| 94 | + .. tab:: Linux OS |
| 95 | + |
| 96 | + When using **Google Chrome**, |
| 97 | + |
| 98 | + #. Open the web browser. |
| 99 | + #. Navigate to :menuselection:`Settings --> Privacy and security --> Security --> Manage |
| 100 | + certificates`. |
| 101 | + #. Go to the :guilabel:`Authorities` tab, click :guilabel:`Import`, and select the exported |
| 102 | + certification files. |
| 103 | + #. Accept all warnings and click :guilabel:`ok`. |
| 104 | + #. Restart the web browser. |
| 105 | + |
| 106 | + When using **Mozilla Firefox**, |
| 107 | + |
| 108 | + #. Open the web browser. |
| 109 | + #. Navigate to :menuselection:`Settings --> Privacy & Security --> Security --> View |
| 110 | + Certificates... --> Import`. |
| 111 | + #. Select the exported certification files. |
| 112 | + #. Tick the checkboxes and validate. |
| 113 | + #. Restart the web browser. |
| 114 | + |
| 115 | +Payment method |
| 116 | +-------------- |
| 117 | + |
| 118 | +#. :ref:`Install <general/install>` the POS Glory Cash Machines module. |
| 119 | +#. :doc:`Associate a cash payment method <../../payment_methods>`: |
| 120 | + |
| 121 | + - Go to :menuselection:`Point of Sale --> Configuration --> Payment Methods`. Create a new |
| 122 | + :guilabel:`Cash` payment method or update an existing payment method. |
| 123 | + - Select the associated POS in the :guilabel:`Point of Sale` field. |
| 124 | + - Select :guilabel:`Cash Machine (Glory)` in the :guilabel:`Integration` field. |
| 125 | + - Fill in the :guilabel:`Cash Machine IP` field with the IP address of the cash machine. |
| 126 | + - If the cash machine was configured to use :guilabel:`User check` in the previous section, fill |
| 127 | + in the :guilabel:`Cash Machine Username` and :guilabel:`Cash Machine Password`. |
| 128 | + |
| 129 | +.. seealso:: |
| 130 | + :doc:`../../payment_methods` |
0 commit comments