PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | src/Gateway/AccountGateway.php +8 -4 2.18.0 → 3.1.0 View file →
@@ -8,9 +8,9 @@
8 8 class AccountGateway
9 9 {
10 10 use ServiceGetter;
11 11
12 - public function _construct()
12 + public function _construct(): void
13 13 {
14 14 $this->configuration = $this->get_service('configuration');
15 15 }
16 16
@@ -30,8 +30,12 @@
30 30
31 31 // get admin keys
32 32 $keys = $this->get_api()->get_keys_by_login($email, $password);
33 33 if (!$keys['result']) {
34 + if (!empty($keys['multiple_users'])) {
35 + return ['multiple_users' => true];
36 + }
37 +
34 38 return [];
35 39 }
36 40
37 41 // if keys got, register keys in database
@@ -59,9 +63,9 @@
59 63 * @param $company_id
60 64 *
61 65 * @return void
62 66 */
63 - public function initialize_jwt($client_id = '', $company_id = '')
67 + public function initialize_jwt($client_id = '', $company_id = ''): void
64 68 {
65 69 // Clean previous configuration to avoid any conflict with
66 70 $this->get_configuration()->clean_option();
67 71
@@ -174,9 +178,9 @@
174 178
175 179 /**
176 180 * @return void
177 181 */
178 - public function logout()
182 + public function logout(): void
179 183 {
180 184 }
181 185
182 186 /**
@@ -203,9 +207,9 @@
203 207
204 208 /**
205 209 * @return void
206 210 */
207 - public function initialize_permisssion()
211 + public function initialize_permisssion(): void
208 212 {
209 213 // get the permissions
210 214 $permissions = $this->get_permissions();
211 215