hdsa@dsdsWA15)espdsMJdsdsv| .ds,4es#> es;fs1$u-ds0dsGR5 es->es,'R@.4esds3\Xdsds^JZwds dsSydsdsi-LHdsdsg:pdsds-Lds` >esX\.>esoesa|(;fsoes17g&oes`ds׽MLN@oesdsu͵|Զds;fsKw+`;fs0ds㟑ds`ds(6ds;fs jn;fsdsv ٥.dsoes*c ds@;fst$1P ( ds`dso:Ƕ8dsds|qoesdsΰem .Ids dsE)`dsdsER/>es`dsxQg dsdsH﬘xǀdsdst14 esdsbZmpdsdsk,dsdsJ6Hds;fs4;,X;fs;fs;fsds7y48;fsdsX]쌞ܒdsPds*6((ds`ds!5lp;fs@ds:^5ٔndsds8_IAxdsoesy};fsdsTE ѯ@oesdsXF dsPdsNKȿds@ esFu1 esdsIf%dsdsVPids@dsk@ds@ es mR esds+ nhoesoest %;fsdsKbeʏpdsds UgetMessage(); break; } $this->errors[] = $error; return $isCompatible = \false; } return $isCompatible; } /** * @return string */ public function getWooCommerceVersion() { return WooCommerce::instance()->version; } /** * @return bool */ public function hasCompatibleWooCommerceVersion() { return version_compare($this->getWooCommerceVersion(), self::MIN_WOOCOMMERCE_VERSION, ">="); } /** * @return bool */ protected function isApiClientInstalled() { return class_exists(MollieApiClient::class); } /** * @throws \Mollie\Api\Exceptions\ApiException */ public function getMollieApiStatus($apiClient) { try { // Try to load Mollie issuers $apiClient->methods->all(); } catch (\Mollie\Api\Exceptions\ApiException $apiException) { if ($apiException->getMessage() === 'Error executing API call (401: Unauthorized Request): Missing authentication, or failed to authenticate. Documentation: https://docs.mollie.com/guides/authentication') { throw new \Mollie\Api\Exceptions\ApiException(esc_html__('incorrect API key or other authentication issue. Please check your API keys!', 'mollie-payments-for-woocommerce')); } $message = $apiException->getMessage(); throw new \Mollie\Api\Exceptions\ApiException(esc_html($message)); } } }