/// <summary> /// 玉山實名認證-餘額查詢交易 /// </summary> /// <returns></returns> public ActionResult ProdEsunAllPayQueryBalance() { //正式環境的查詢 AllPayEsunPaymentService.PayServiceClient esunPaymentService = new AllPayEsunPaymentService.PayServiceClient(); //string VaccNo = "98608220709816"; //OMG的虛擬帳戶; string VaccNo = "98608513536609"; string QueryDateTime = DateTime.Now.ToString("yyyyMMddHHss"); string HashKey = "pkwefio28o23jklw4924jlzf92023kf9"; //產生驗證碼 StringBuilder shaPara = new StringBuilder(); shaPara.Append(VaccNo); shaPara.Append(QueryDateTime); shaPara.Append(HashKey); string identifyNo = new AllPay.ShareLib.Crypt().SHA(shaPara.ToString()); var reponseResult = esunPaymentService.Balance(VaccNo,QueryDateTime,identifyNo); return null; }