In the constructor, after setting sort_order and enabled, you should do a check:

if (null === $this->sort_order) return;

otherwise you get a bunch of logs for undefined constants.

[21-May-2024 11:42:03 America/Anchorage] PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_AUTHORIZENET_CIM_TESTMODE" in /home/thatsoftwareguy4/client/includes/modules/payment/authorizenet_cim.php:104