/// <summary> /// 玉山實名認證-解圈轉帳 /// </summary> /// <returns></returns> public ActionResult ProdEsunAllPayTransFree() { //正式環境的查詢 AllPayEsunPaymentService.PayServiceClient esunPaymentService = new AllPayEsunPaymentService.PayServiceClient(); string VaccNo = "98608513536609"; //"98608218458640"; int unLockAmount = 7; string inVaccNo = "98608220709816"; // "98608220711017"; int inAmount = 7; int Fee = 0; string HashKey = "pkwefio28o23jklw4924jlzf92023kf9"; //產生驗證碼 StringBuilder shaPara = new StringBuilder(); shaPara.Append(VaccNo); shaPara.Append(unLockAmount); shaPara.Append(HashKey); string identifyNo = new AllPay.ShareLib.Crypt().SHA(shaPara.ToString()); var reponseResult = esunPaymentService.TransFree(VaccNo, unLockAmount,inVaccNo, inAmount, Fee, identifyNo); return null; }
/// <summary> /// 玉山實名認證-圈存交易 /// </summary> /// <returns></returns> public ActionResult ProdEsunAllPayTrans() { string memberVirtualAccount = "98608220709816"; int tradeAmount = 5; string HashKey = "pkwefio28o23jklw4924jlzf92023kf9"; //產生驗證碼 StringBuilder shaPara = new StringBuilder(); shaPara.Append(memberVirtualAccount); shaPara.Append(tradeAmount); shaPara.Append(HashKey); string identifyNo = new AllPay.ShareLib.Crypt().SHA(shaPara.ToString()); AllPayEsunPaymentService.PayServiceClient esunPaymentService = new AllPayEsunPaymentService.PayServiceClient(); var esunTransResponse = esunPaymentService.Trans(memberVirtualAccount, tradeAmount, identifyNo); return null; }
/// <summary> /// 玉山實名認證-解圈退貨 /// </summary> /// <returns></returns> public ActionResult ProdEsunAllPayReject() { //正式環境的查詢 AllPayEsunPaymentService.PayServiceClient esunPaymentService = new AllPayEsunPaymentService.PayServiceClient(); string VaccNo = "98608218458640"; int unLockAmount = 5; string HashKey = "pkwefio28o23jklw4924jlzf92023kf9"; //產生驗證碼 StringBuilder shaPara = new StringBuilder(); shaPara.Append(VaccNo); shaPara.Append(unLockAmount); shaPara.Append(HashKey); string identifyNo = new AllPay.ShareLib.Crypt().SHA(shaPara.ToString()); var reponseResult = esunPaymentService.Reject(VaccNo, unLockAmount, identifyNo); return null; }
/// <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; }