Setting merchant account via filter
-
I would like to have a new feature where you could pass the merchant key and secret with a WordPress filter. With the filter the active merchant account can be in version control so there will be log if and when someone has changed it. You could also automatically use the test account when site is in local environment with the filter.
I’ve just switched a legacy e-commerce plugin to WooCommerce in a donation website that has multiple Checkout accounts and I’m switching the correct merchant key and secret in place via option_woocommerce_checkout_finland_settings filter (automatically created filter for all wp_options settings) but this is a bit hacky.
Optimally the filter would also give as argument the order id if there is an active order in current request.
- The topic ‘Setting merchant account via filter’ is closed to new replies.