From 8e0270871fc1883dc202046458f87c31a29a945e Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Sat, 6 Aug 2016 11:47:33 +0530 Subject: [PATCH] Braintree - MID Compatibility, ref #521 --- classes/wc-gateway-braintree-angelleye.php | 24 ++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/classes/wc-gateway-braintree-angelleye.php b/classes/wc-gateway-braintree-angelleye.php index 6aed4fb86..5174bb69f 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(); ?>