src/Backend/Modules/CommerceCashOnDelivery/Installer/Installer.php
/**
     * Register this module in the Commerce module as available payment method
     */
Register this module in the Commerce module as available payment method
Register this module in the Commerce module as available payment method
private function registerCommercePaymentMethod(string $module): void
    {
        foreach ($this->getLanguages() as $language) {
            Language::setLocale($language);
            $name = ucfirst(Language::lbl($this->getModule()));
            $this->getDatabase()->execute(
                'INSERT INTO commerce_payment_methods (name, module, language) VALUES (?, ?, ?)',
                [$name, $module, $language]
            );
        }
    }
private function registerCommercePaymentMethod ( string $ module ) : void { foreach ( $ this -> getLanguages ( ) as $ language ) { Language :: setLocale ( $ language ) ; $ name = ucfirst ( Language :: lbl ( $ this -> getModule ( ) ) ) ; $ this -> getDatabase ( ) -> execute ( 'INSERT INTO commerce_payment_methods (name, module, language) VALUES (?, ?, ?)' , [ $ name , $ module , $ language ] ) ; } }
Register this module in the Commerce module as available payment method
Register this module in the Commerce module as available payment method