/**
  * Shorthand for loader singleton logger
  *
  * @since 1.0.0
  */
 protected function log($context, $message)
 {
     if ($this->debug) {
         WC_PayPal_Braintree_Loader::getInstance()->log($context, $message);
     }
 }
 /**
  * When cart based Checkout with PayPal is in effect, disable other gateways on checkout
  *
  * @since 1.0.0
  * @param array $gateways
  * @return array
  */
 public function possibly_disable_other_gateways($gateways)
 {
     if (WC_PayPal_Braintree_Loader::getInstance()->does_session_have_postback_data()) {
         foreach ($gateways as $id => $gateway) {
             if ($id !== 'paypalbraintree_paypal') {
                 unset($gateways[$id]);
             }
         }
     }
     return $gateways;
 }