Skip to content

Magento 2.4.7 Deprecated Functionality, Clearsale

After upgrading to m2.4.7-p1, we installed the newest version of Clearsale and see these errors:

  1. Deprecated Functionality: Creation of dynamic property ClearsaleIntegrationModelAuthEntityCredentialsFactory::$ClientSecret is deprecated in /vendor/clearsale/integration/Model/Auth/Business/AuthBusinessObject.php
  2. Deprecated Functionality: Creation of dynamic property ClearsaleIntegrationModelAuthEntityCredentialsFactory::$ClientID is deprecated in /vendor/clearsale/integration/Model/Auth/Business/AuthBusinessObject.php
  3. Deprecated Functionality: Creation of dynamic property ClearsaleIntegrationModelAuthEntityCredentialsFactory::$ApiKeyis deprecated in /vendor/clearsale/integration/Model/Auth/Business/AuthBusinessObject.php
  4. Deprecated Functionality: Creation of dynamic property ClearsaleIntegrationModelOrderEntityPayment::$CardType is deprecated in /vendor/clearsale/integration/Observer/ClearsaleObserver.php
    We added to the file AuthBusinessObject.php:
protected $ApiKey;
protected $ClientID;
protected $ClientSecret;

Also, we tried to use AllowDynamicProperties (https://magento.stackexchange.com/a/373345/55392), and we tried this script https://github.com/zagonico86/magento2-fix-dynamic-properties/, but nothing helped, we see the same errors. After each change, we wrote: PHP bin/magento s:d:c, PHP bin/magento c:f. Note: We already wrote to the Clearsale, but have no answer. Any ideas on how to fix this? Thank you!