/** * Also sets the gateway url class variable based on whether debug mode is enabled or not * @param array $settings_array */ public function set_settings($settings_array) { parent::set_settings($settings_array); if ($this->_debug_mode) { $this->_gateway_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; } else { $this->_gateway_url = 'https://www.paypal.com/cgi-bin/webscr'; } }