public hinet_result Accounting(string Alias, string ProductID, string OTPW, string Authority, string Fee, string SRemark) { string aa_ServerName = _cht_server_name; string aa_Alias = Alias; string aa_ProductID = ProductID; string aa_ApID = Authority; string aa_OTPW = OTPW; string aa_Authority = Authority; string aa_Fee = Fee; string aa_STime = DateTime.Now.ToString("yyyyMMddHHmmss"); string aa_SRemark = SRemark; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.Accounting(aa_ServerName, aa_OTPW, aa_Fee, aa_ApID, aa_STime, aa_SRemark, aa_ProductID, aa_Authority); logger.Info(JsonConvert.ExportToString(hinet_res)); if (hinet_res.result_code == "Success") { } return(hinet_res); }
public hinet_result Authorization(string Alias, string ProductID, string OTPW, string Authority, string Fee) { string aa_ServerName = _cht_server_name; string aa_Alias = Alias; string aa_ProductID = ProductID; string aa_ApID = Authority; string aa_OTPW = OTPW; string aa_Authority = Authority; string aa_ActionDate = ""; string aa_TotalMonth = ""; string aa_SettingCharge = ""; string aa_InstallCharge = ""; string aa_FirstCharge = ""; string aa_Fee = Fee; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.Authorize(aa_ServerName, aa_OTPW, aa_Fee, aa_ApID, aa_ProductID, aa_Authority); if (hinet_res.result_code == "Success") { // hinet_res.subscribeno = hinet.GetMonthSubscribeNo(); } logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
public hinet_result ATMMultiplebills(string aa_OTPW, string Multiplebills) { string aa_ServerName = _cht_server_name; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.ATMMultiplebills(aa_ServerName, aa_OTPW, Multiplebills); // hinet_res.txndatetime = hinet.GetTxntime(); logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
public hinet_result RevokeCredit(string aa_OTPW) { string aa_ServerName = _cht_server_name; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.CreditRevoke(aa_ServerName, aa_OTPW); // hinet_res.txndatetime = hinet.GetTxntime(); logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
protected void Page_Load(object sender, EventArgs e) { AAAComponent AAA = new AAAComponent(); string cl = version + productid.ToString() + curl + eurl + fee.ToString() + other; string pwd = ""; MD5 md5 = new MD5CryptoServiceProvider(); byte[] b = md5.ComputeHash(Encoding.ASCII.GetBytes(cl)); foreach (byte c in b) { pwd = pwd + c.ToString("x2"); } checksum = pwd;// AAA.Make1AChecksum(version, productid.ToString(), curl, eurl, fee.ToString(), other); }
public hinet_result MonthlyTransferAuth(string aa_ProductID, string aa_Fee, string aa_others, string aa_authinfo, string aa_defaultpay) { string aa_ServerName = _cht_server_name; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.MonthlyTransferAuth(aa_ServerName, aa_ProductID, aa_Fee, aa_others, aa_authinfo, aa_defaultpay); if (hinet_res.result_code == "Success") { // hinet_res.subscribeno = hinet.GetMonthSubscribeNo(); } logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
public hinet_result QuerySubscribe(string Alias, string SubscribeNo, string ProductID, string ApID) { string aa_ServerName = _cht_server_name; string aa_Alias = Alias; string aa_ProductID = ProductID; string aa_ApID = ApID; string aa_SubscribeNo = SubscribeNo; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.MonthQuery(aa_ServerName, aa_Alias, aa_SubscribeNo, aa_ProductID, aa_ApID, ""); logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
public hinet_result UnSubscribe(string Alias, string SubscribeNo, string ProductID, string ApID, string ActionDate) { string aa_ServerName = _cht_server_name; string aa_Alias = Alias; string aa_ProductID = ProductID; string aa_ApID = ApID; string aa_SubscribeNo = SubscribeNo; string aa_ActionDate = ActionDate; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.MonthUnSubscribe(aa_ServerName, aa_Alias, aa_SubscribeNo, aa_ProductID, aa_ApID, aa_ActionDate, ""); if (hinet_res.result_code == "Success") { hinet_res.subscribeno = hinet.GetMonthSubscribeNo(); } logger.Info(JsonConvert.ExportToString(hinet_res)); return(hinet_res); }
public hinet_result Authorize(string Alias, string ProductID, string OTPW, string Authority, string Fee) { string aa_ServerName = _cht_server_name; string aa_Alias = Alias; string aa_ProductID = ProductID; string aa_ApID = Authority; string aa_OTPW = OTPW; string aa_Authority = Authority; string aa_Fee = Fee; hinet_result hinet_res = new hinet_result(); AAAComponent hinet = new AAAComponent(); hinet_res.result_code = hinet.Authorize(aa_ServerName, aa_OTPW, aa_Fee, aa_ApID, aa_ProductID, aa_Authority); logger.Info(JsonConvert.ExportToString(hinet_res)); if (hinet_res.result_code == "Success") { } return(hinet_res); }
protected void Page_Load(object sender, EventArgs e) { AAAComponent AAA = new AAAComponent(); checksum = AAA.Make1AChecksum(version, productid.ToString(), curl, eurl, fee.ToString(), other); }