Hi @chrillep,
The settings are automatically migrated when the admin updates the plugin from any version less than 3.0.0; so if you wanted the plugin to do it for you, you could just change the WP option name of braintree_wc_version
to 2.6.65
.
If you must do it programatically, look at file woo-payment-gateway/includes/updates/update-3.0.0.php
. That file has all the mappings from the old option names to the new ones. All new option names follow the WC naming convention.
Example:
Apple Settings ID = braintree_applepay
option name = woocommerce_braintree_applepay_settings
We provide a developer documentation site that has all the hook, filters, etc that you may find interesting.
Developer Docs
Kind regards,