public function __construct(&$gateway_adapter)
 {
     parent::__construct($gateway_adapter);
     //gateway_adapter is set in there.
     // load user action ranges and risk score
     $this->action_ranges = $this->gateway_adapter->getGlobal('CustomFiltersActionRanges');
     $this->risk_score = $this->gateway_adapter->getGlobal('CustomFiltersRiskScore');
 }
 public function __construct(&$gateway_adapter)
 {
     parent::__construct($gateway_adapter);
     //stash all the vars that reCaptcha is going to need in a global just for it.
     //I know this is vaguely unpleasant, but it's the quickest way back to zero.
     global $wgReCaptchaConfData;
     $wgReCaptchaConfData['UseHTTPProxy'] = $this->gateway_adapter->getGlobal('RecaptchaUseHTTPProxy');
     $wgReCaptchaConfData['HTTPProxy'] = $this->gateway_adapter->getGlobal('RecaptchaHTTPProxy');
     $wgReCaptchaConfData['Timeout'] = $this->gateway_adapter->getGlobal('RecaptchaTimeout');
     $wgReCaptchaConfData['UseSSL'] = $this->gateway_adapter->getGlobal('RecaptchaUseSSL');
     $wgReCaptchaConfData['ComsRetryLimit'] = $this->gateway_adapter->getGlobal('RecaptchaComsRetryLimit');
     $wgReCaptchaConfData['GatewayClass'] = $this->gateway_adapter->getGatewayAdapterClass();
     //for properly routing the logging
     // load the reCaptcha API
     require_once dirname(__FILE__) . '/recaptcha-php/recaptchalib.php';
 }
 function __construct(&$gateway_adapter, $license_key = NULL)
 {
     parent::__construct($gateway_adapter);
     $dir = dirname(__FILE__) . '/';
     require_once $dir . "ccfd/CreditCardFraudDetection.php";
     global $wgMinFraudLicenseKey;
     // set the minfraud license key, go no further if we don't have it
     if (!$license_key && !$wgMinFraudLicenseKey) {
         throw new MWException("minFraud license key required but not present.");
     }
     $this->minfraud_license_key = $license_key ? $license_key : $wgMinFraudLicenseKey;
     $gateway_ranges = $gateway_adapter->getGlobal('MinFraudActionRanges');
     if (!is_null($gateway_ranges)) {
         $this->action_ranges = $gateway_ranges;
     }
 }
 /**
  * Constructor
  *
  * @param GatewayType    $gateway_adapter    Gateway adapter instance
  * @param Gateway_Extras_CustomFilters    $custom_filter_object    Instance of Custom filter object
  * @param string            $license_key        The license key. May also be set in $wgMinFraudLicenseKey
  * @throws RuntimeException
  */
 protected function __construct(GatewayType $gateway_adapter, Gateway_Extras_CustomFilters $custom_filter_object, $license_key = NULL)
 {
     parent::__construct($gateway_adapter);
     $this->fraud_logger = DonationLoggerFactory::getLogger($gateway_adapter, '_fraud');
     $this->cfo = $custom_filter_object;
     global $wgMinFraudLicenseKey;
     // set the minfraud license key, go no further if we don't have it
     if (!$license_key && !$wgMinFraudLicenseKey) {
         throw new RuntimeException("minFraud license key required but not present.");
     }
     $this->minfraudLicenseKey = $license_key ? $license_key : $wgMinFraudLicenseKey;
     // Set the action range
     $gateway_ranges = $gateway_adapter->getGlobal('MinFraudActionRanges');
     if (!is_null($gateway_ranges)) {
         $this->action_ranges = $gateway_ranges;
     }
     // Set the minFraud API servers
     $minFraudServers = $gateway_adapter->getGlobal('MinFraudServers');
     if (!empty($minFraudServers) && is_array($minFraudServers)) {
         $this->minFraudServers = $minFraudServers;
     }
 }
 protected function __construct(GatewayType $gateway_adapter, Gateway_Extras_CustomFilters $custom_filter_object)
 {
     parent::__construct($gateway_adapter);
     $this->cfo = $custom_filter_object;
 }
 protected function __construct(GatewayType $gateway_adapter)
 {
     parent::__construct($gateway_adapter);
     $this->fraud_logger = DonationLoggerFactory::getLogger($this->gateway_adapter, '_fraud');
 }
 public function __construct(&$gateway_adapter, &$custom_filter_object)
 {
     parent::__construct($gateway_adapter);
     $this->cfo =& $custom_filter_object;
 }