curl_setopt(self::$ch,CURLOPT_TIMEOUT,30);// 30-second timeout, adjust to taste
curl_setopt(self::$ch,CURLOPT_POST,!empty($values));// WePay's API is not strictly RESTful, so all requests are sent as POST unless there are no request values
thrownewWePayServerException("WePay returned an error response with no error_code, please alert api@wepay.com. Original message: $result->error_description",$httpCode,$result,0);