// 测试md5Key // public static final String md5Key = "742fa3ffd050fb441763bf8fb6c0594f"; // 测试商户号 // public static final String merchantId = "903110153110001"; //测试环境快捷的测试卡号: //测试环境第一次: //平安银行借记卡:6216261000000000018 // 手机号:13552535506 // 证件类型:01 // 证件号:341126197709218366 // 密码:123456 // 姓名:全渠道 // 短信验证码:123456(手机)/111111(PC)(先点获取验证码之后再输入) /// <summary> /// 单笔代付 /// </summary> static void SingleDFPay() { var model = new SingleDFPayModelRequest(); model.head = new SingleDFHead { merchantId = "903110153110001", signType = "1", version = "18", }; model.content = new SingleDFContent { accountName = "全渠道", accountNo = "6216261000000000018", accountType = "1", amt = 1, bankName = "平安银行", bankNo = "105290068018", mchtOrderNo = GuidUtils.GetLongStringGuid(), notifyUrl = "http://47.92.68.54:8000", orderDateTime = DateTime.Now.ToString("yyyyMMddHHmmss"), purpose = "test", remark = "单笔代付", }; var fatory = new SingleDFPayChannelFatory(); var result = fatory.CreateResult(model); }
// 测试md5Key // public static final String md5Key = "742fa3ffd050fb441763bf8fb6c0594f"; // 测试商户号 // public static final String merchantId = "903110153110001"; //测试环境快捷的测试卡号: //测试环境第一次: //平安银行借记卡:6216261000000000018 // 手机号:13552535506 // 证件类型:01 // 证件号:341126197709218366 // 密码:123456 // 姓名:全渠道 // 短信验证码:123456(手机)/111111(PC)(先点获取验证码之后再输入) /// <summary> /// 发送短信接口 /// </summary> static SendSMSModelResponse SendSMS() { var model = new SendSMSModelRequest(); model.head = new SendSMSHead { merchantId = "903110153110001", signType = "1", }; model.content = new SendSMSContent { payerAcctNo = "6216261000000000018", payerIdNo = "341126197709218366", payerIdType = "01", payerName = "全渠道", payerTelephone = "13552535506", orderAmount = "100", orderNo = GuidUtils.GetLongStringGuid(), }; var fatory = new SendSMSChannelFatory(); var result = fatory.CreateResult(model); return(result); }
protected void Page_Load(object sender, EventArgs e) { PayGateWayPCModel = new PayGateWayPCModel(); var orderAmount = Request.Form["orderAmount"]; var productName = Request.Form["productName"]; var merchantId = Request.Form["merchantId"]; this.PayGateWayPCModel.head = new PayGateWayPCHead { merchantId = merchantId, signType = "1", version = "18", }; this.PayGateWayPCModel.content = new PayGateWayPContent { pickupUrl = "http://47.92.68.54:8002/BankB2C/pickupUrl.aspx", receiveUrl = "http://47.92.68.54:8002/BankB2C/receiveUrl.aspx", orderNo = GuidUtils.GetLongStringGuid(), orderAmount = int.Parse(orderAmount), orderCurrency = 156, orderDateTime = DateTime.Now.ToString("yyyyMMddHHmmss"), productName = productName, payType = 1, issuerId = "00000000", }; var fatory = new PayGateWayPCChannelFatory(); var response = fatory.CreateResult(PayGateWayPCModel); var resule = Newtonsoft.Json.JsonConvert.SerializeObject(response); Response.Write(resule); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { this.orderNumber = GuidUtils.GetLongStringGuid(); this.orderDate = DateTime.Now.ToString("yyyyMMdd"); }