function __construct($config) { parent::__construct($config); $this->Http =& new HttpSocket(); $this->userName = $this->config['username']; $this->password = $this->config['password']; $this->signature = $this->config['signature']; $this->environment = $this->config['environment']; $this->currency = $this->config['currency']; }
/** * Verifies POST data given by the paypal instant payment notification * * @param array $data Most likely directly $_POST given by the controller. * @return boolean $valid depending on if data received is actually valid from paypal and not from some script monkey */ function verify($data) { return parent::verify($data); }
public function __construct($config) { $auth = "{$config['login']}:{$config['password']}"; $this->connection = new HttpSocket("http://{$auth}@twitter.com/"); parent::__construct($config); }