@Testpublic void merchantRegister() throws Exception {/**1、获取需要的参数*/OnlineReqDataVo req = new OnlineReqDataVo();//注册线上进件商户的请求路径,建议配置在项目的配置文件里面String reqUrl = "https://register.ysepay.com:2443/register_gateway/gateway.do";//客户端私钥证书路径: 证书是在入网流程中自己申请的String privateKeyFilePath = "D:\openRSA\hyfz_test2.pfx";//客户端私钥密钥: 私钥密钥在入网流程中自己申请私钥证书时填写的String privateKeyPassworde = "123456";//银盛公钥证书路径: 证书入网申请后随邮件发放String publicKeyFilePath = "D:\openRSA\businessgate.cer";//商户在银盛支付平台开设的用户号[商户号]:入网申请后发放String partnerId = "hyfz_test2";//银盛支付服务器主动通知商户网站里指定的页面http路径。String notifyUrl = "http://127.0.0.1";//设置私钥证书路径req.setPrivateKeyFilePath(privateKeyFilePath);//设置私钥密钥req.setPrivateKeyPassword(privateKeyPassworde);//设置ys公钥证书路径req.setYsPublicKeyFilePath(publicKeyFilePath);//设置请求路径req.setReqUrl(reqUrl);//设置通知路径req.setNotifyUrl(notifyUrl);req.setPartnerId(partnerId);/**2、组装业务参数*/Map<String,Object> bizContentMap = new HashMap<>();bizContentMap.put("merchant_no","youname");//平台商唯一标识bizContentMap.put("remark","第一个商户");//备注bizContentMap.put("cust_type","O");//客户类型O:小微;B:企业;C:个体bizContentMap.put("token","TK20211012165208644yMaMr2UD");//token值 :通过getToken接口获取bizContentMap.put("another_name","龙商龙行");//商户简称bizContentMap.put("cust_name","龙行百货");//公司名称或者客户名称,客户类型是小微商户时客户名称需和身份证号码、法人手机号码匹配bizContentMap.put("mer_flag","11");//商户属性。11为普通商户,12为代理商户,不填的情况下默认为普通商户bizContentMap.put("industry","23");//行业类别 ,详细类别见3.6节的定义bizContentMap.put("province","内蒙古自治区");//省,为完善企业信息请准确填写bizContentMap.put("city","呼和浩特市");//市,为完善企业信息请准确填写bizContentMap.put("company_addr","滨河北路中海外滩");//详细地址,为完善企业信息请准确填写bizContentMap.put("legal_name","李四");//企业法人名字,需和身份证号码、法人手机号码匹配,当客户类型为小微商户是,企业法人可以为空,bizContentMap.put("legal_tel","13747255939");//企业法人手机号码bizContentMap.put("mail","7691345307@qq.com");//登陆邮箱,请按照正确邮箱格式填写bizContentMap.put("contact_man","张三");//联系人bizContentMap.put("contact_phone","18888888888");//联系人手机号码bizContentMap.put("legal_cert_type","00");//企业法人证件类型,支持类型请参照3.7小节bizContentMap.put("legal_cert_no", SrcDesUtil.encryptData(partnerId,"110101198001010010"));//企业法人证件号,请加密传输 注:如果签名方式为RSA,则用DES加密,密钥Src用户号前8位,不足8位前补空; 如果签名方式为SM,则用SM加密bizContentMap.put("legal_cert_expire","20360810");//企业法人证件有效期,格式为yyyyMMdd。为空时默认长期有效bizContentMap.put("bus_license","沪-A1283123132");//营业执照,客户类型为个体商户、企业户时为必填,为保证商户信息准确,请填写有效营业执照号bizContentMap.put("bus_license_expire","20181229");// 营业执照有效期,客户类型为个体商户、企业商户时为必填,格式为yyyyMMddbizContentMap.put("notify_type","1");//通知方式,此通知为商户号审核通知,通知内容包含帐号信息,为空的情况下将不发送通知,支持通知方式1、邮箱,2手机短信,3、邮箱+手机短信bizContentMap.put("settle_type","1");//结算方式,0:平台内账户1:银行卡账户.结算方式为0时银行卡信息只涉及提现,为1时涉及到提现以及清算bizContentMap.put("bank_account_no","43672221090449733315");//银行帐号,注:当bank_account_type为对公账户时,该属性字段长度可以为String(1,32)bizContentMap.put("bank_account_name","王二小");//开户人,银行卡账户名,需和法人姓名或客户姓名一致bizContentMap.put("bank_account_type","personal");//银行账户类型,此处必填corporate :对公账户;personal:对私账户bizContentMap.put("bank_card_type","debit");//银行卡类型,可填debit|unit.debit借记卡,unit单位结算卡bizContentMap.put("bank_name","中国建设银行呼和浩特赛罕区支行");// 开户行名称,为交易能顺利进行,请尽可能填写到街道bizContentMap.put("bank_type","中国建设银行");//银行行别bizContentMap.put("bank_province","内蒙古自治区");//开户行所在的省份bizContentMap.put("bank_city","呼和浩特市");//开户行所在城市bizContentMap.put("cert_type","00");//开户人证件类型,目前只支持00,00为身份证bizContentMap.put("cert_no",SrcDesUtil.encryptData(partnerId,"110101198001010010"));//开户人证件号码,请加密传输bizContentMap.put("bank_telephone_no","13347255979");//银行预留手机号bizContentMap.put("service_tel","13347259638");//客服电话bizContentMap.put("org_no","6190000067");//机构号bizContentMap.put("sub_account_flag","N");//分账参与商户标识req.setParamData(bizContentMap);logger.info("注册线上进件商户请求入参为:"+ JSONObject.toJSONString(req));/**2、调用API的方法*/String result = null;try{result = OnlineMercApi.merchantRegister(req);//根据返回结果处理自己的业务逻辑,result内容详见接口文档}catch (Exception e){logger.info("注册线上进件商户失败:"+e.getCause().getMessage());e.printStackTrace();//根据自己要求处理业务逻辑}}
站长工具收录查询中国人民银行网站查询中国世达建筑公司排名专业网站制作服务医学专业网站网页游戏代理加盟短视频制作团队哪里找宣传画册设计软件测试好找工作吗国家企业信用信息公示系统官网查询怎么开发一个网页大连公司转让如何制作小程序二维码国家医保服务平台网站设计方案图苏州网页制作公司哪家好网站视频开发平台管理咨询公司业务类型以下是b2b电子商务网站西安关键词优化软件商丘微信推广平台动画设计属于什么大类微信商城首页外贸网站优化软件创建网站服务器北京搬家公司排名广告公司宣传册设计17做网店广州货源网黄冈贴吧个体户广告公司名字成人高考考什么
- 首页
- app开发者需要更新此app
- 正文
房屋设计软件app自己设计画图_手机erp系统免费版_工信部网站备案查询系统_温州龙湾区新冠疫情最新
最新文章
推荐文章
Copyright © 2024 房屋设计软件app自己设计画图 版权所有
网站地图
房屋设计软件app自己设计画图,一家专业营销型网站建设公司、响应式网站制作公司,提供企业响应式网站建设、自适应企业网站模板、营销型网站制作、响应式企业网站模板制作等服务。
房屋设计软件app自己设计画图,一家专业营销型网站建设公司、响应式网站制作公司,提供企业响应式网站建设、自适应企业网站模板、营销型网站制作、响应式企业网站模板制作等服务。