/** * Updates the Config and writes changes into db * @param ConfigurationModel $model */ public function updateConfiguration(ConfigurationModel $model) { Configuration::updateValue('PIGMBH_PAYMILL_DEBIT', $model->getDirectdebit()); Configuration::updateValue('PIGMBH_PAYMILL_CREDITCARD', $model->getCreditcard()); Configuration::updateValue('PIGMBH_PAYMILL_PUBLICKEY', $model->getPublicKey()); Configuration::updateValue('PIGMBH_PAYMILL_PRIVATEKEY', $model->getPrivateKey()); Configuration::updateValue('PIGMBH_PAYMILL_DEBIT_DAYS', $model->getDebitDays()); Configuration::updateValue('PIGMBH_PAYMILL_DEBUG', $model->getDebug()); Configuration::updateValue('PIGMBH_PAYMILL_LOGGING', $model->getLogging()); Configuration::updateValue('PIGMBH_PAYMILL_FASTCHECKOUT', $model->getFastcheckout()); Configuration::updateValue('PIGMBH_PAYMILL_CAPTURE', $model->getCapture()); Configuration::updateValue('PIGMBH_PAYMILL_ACCEPTED_BRANDS', Tools::jsonEncode($model->getAccpetedCreditCards())); }