Commit bc33e53b authored by Michael Iseard's avatar Michael Iseard
Browse files

Add migration for old mollie settings to new vendor array

parent cdbbf6d6
......@@ -116,6 +116,24 @@ class ActivatorService {
}
if ( version_compare( $old_version, '2.3.8', '<' ) ) {
// Setting now replaced by single 'vendor_mollie' setting
if(Settings::update_setting( 'vendor_mollie', [
'connected' => Settings::get_setting( 'mollie_connected' ),
'recurring' => Settings::get_setting( 'mollie_recurring_enabled' ),
'mode' => Settings::get_setting('mollie_api_mode'),
'test_key' => Settings::get_setting( 'mollie_test_api_key' ),
'live_key' => Settings::get_setting( 'mollie_live_api_key' ),
])) {
Settings::remove_setting( 'mollie_connected' );
Settings::remove_setting( 'mollie_recurring_enabled' );
Settings::remove_setting( 'mollie_api_mode' );
Settings::remove_setting( 'mollie_test_api_key' );
Settings::remove_setting( 'mollie_live_api_key' );
};
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment