diff --git a/classes/wc-gateway-braintree-angelleye.php b/classes/wc-gateway-braintree-angelleye.php index 6aed4fb86..67192eedd 100644 --- a/classes/wc-gateway-braintree-angelleye.php +++ b/classes/wc-gateway-braintree-angelleye.php @@ -31,6 +31,7 @@ function __construct() { $this->private_key = $this->sandbox == 'no' ? $this->get_option('private_key') : $this->get_option('sandbox_private_key'); $this->public_key = $this->sandbox == 'no' ? $this->get_option('public_key') : $this->get_option('sandbox_public_key'); $this->enable_braintree_drop_in = $this->get_option('enable_braintree_drop_in') === "yes" ? true : false; + $this->merchant_account_id = $this->sandbox == 'no' ? $this->get_option('merchant_account_id') : $this->get_option('sandbox_merchant_account_id'); $this->debug = isset($this->settings['debug']) && $this->settings['debug'] == 'yes' ? true : false; add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options')); $this->response = ''; @@ -51,8 +52,8 @@ public function admin_options() { generate_settings_html(); ?>