/// <summary> /// 加密进行银行卡四要素认证 /// </summary> public void blankFourEnCeryQuery() { BlankCardCheckRequest request = new BlankCardCheckRequest(); request.idcard = "370832199005060611X"; request.bankcard = "6217856000030139447"; request.mobile = "15053153700"; request.realname = "李司網"; try { BankCardEncryResponse response = client.Auth.blankFourEnCeryQuery(request); Console.WriteLine("银行卡四要素认证-响应数据:" + JSONUtil.getJsonStringFromObject(response)); } catch (SignApplicationException sae) { // 捕获网关校验数据 Console.WriteLine("银行卡四要素认证-网关异常状态码为:" + sae.return_code); Console.WriteLine("银行卡四要素认证-网关异常信息为:" + sae.return_message); } catch (SignServerException sse) { // 捕获网关校验数据 Console.WriteLine("银行卡四要素认证-业务异常状态码为:" + sse.result_code); Console.WriteLine("银行卡四要素认证-业务异常信息为:" + sse.result_message); } }
/// <summary> /// 加密进行银行卡四要素认证 /// </summary> /// <param name="request"></param> /// <returns></returns> public BankCardEncryResponse blankFourEnCeryQuery(BlankCardCheckRequest request) { SignRequest signRequest = new SignRequest(request); signRequest.apiUrl = ApiUrlConstant.Auth.blankFourEnCeryQuery; BankCardEncryResponse response = this.Send <BankCardEncryResponse>(signRequest); return(response); }