$value) $this->config[$key] = $value; return $this; } public function set_productinfo($product_info) { $this->product_info = $product_info; return $this; } public function set_customerinfo($customer_info) { $this->customer_info = $customer_info; return $this; } public function set_orderinfo($order_info) { $this->order_info = $order_info; return $this; } public function set_shippinginfo($shipping_info) { $this->shipping_info = $shipping_info; return $this; } public function get_code($button_attr = '') { if (strtoupper($this->config['gateway_method']) == 'POST') $str = '
'; return $str; } protected function get_verify($url,$time_out = "60") { $urlarr = parse_url($url); $errno = ""; $errstr = ""; $transports = ""; if($urlarr["scheme"] == "https") { $transports = "ssl://"; $urlarr["port"] = "443"; } else { $transports = "tcp://"; $urlarr["port"] = "80"; } $fp=@fsockopen($transports . $urlarr['host'],$urlarr['port'],$errno,$errstr,$time_out); if(!$fp) { die("ERROR: $errno - $errstr