#5 渠道APP客户端内嵌入H5并跳转到指定页面
操作步骤:
1) 申请注册渠道,渠道配置信息(渠道编码:df7192a91bf243c28e715ec90e53c287, 渠道名:51社保管家, 渠道注册码:51SBGJ, 渠道加密key:i029rm#kejij&p ) 2) 联合登录接口: /reg_login (具体参数见下面详细描述), 其中参数redirectUrl用于联合登录成功后, 按redirectUrl地址跳转.
环境说明:
1) 测试环境: http://testwdsbh5.shanp.com 2) 生产环境: http://wxyj.shanp.com
URI
/reg_login GET/POST
参数
String channel //渠道编号(会把用户和渠道绑定)
String phone //用户手机号
String sign //签名(和APP交互签名规则一样)
String redirectUrl //联合登录后重定向地址,参数需要URLEncoder
String backUrl //支付成功后第三方地址, 参数需要URLEncoder(非必填, 支付完成后会加上outTradeNo和result回调用该地址)
URI
http://testwdsbh5.shanp.com/reg_login?channel=df7192a91bf243c28e715ec90e53c287&phone=18664850868&sign=2f35e9965cebde352858d1e5a5b6d977&redirectUrl=%2fs%2fshebao%2fdirect_buy%3fsbuId%3d5%26cid%3d1%26month%3d202001%26shebao_card%3d0%26hukou_type%3d1%26fund%3d500%26nums%3d1%26first_sb%3d0%26first_fund%3d0%26buyFund%3dtrue%26city%3d%e5%b9%bf%e5%b7%9e%26id_card%3d41************11%26user_name%3d%e9%9f%a6%e5%a4%a7%e5%ae%9d&backUrl=https%3a%2f%2fwww.baidu.com%2f%3fmyid%3d123
URI
/s/shebao/direct_buy GET/POST
redirectUrl参数
int sbuId //参保人标识
int cid //社保方案标识
int hukou_type //户口类型
int month //参保月份(201508)
int nums //购买月数
int shebao_card //新办卡(0不办卡 1新办卡 2补办卡)
int first_sb //首次购买
double sb_wage //社保流水 --------------------- 20181229新加
int first_fund //首次购买公积金
double fund //公积金金额
boolean buyFund //是否打包公积金
boolean added //是否补缴
//以下参数只用于展示购买人信息
String city //社保城市中文名
String id_card //参保人身份证
String user_name //参保人姓名
backUrl参数
String outTradeNo //我的社保单号
String result //支付结果 success/fail
## 二 公积金购买支付完整注册登录跳转支付订单完整请求地址
URI
http://testwdsbh5.shanp.com/reg_login?channel=df7192a91bf243c28e715ec90e53c287&phone=18664850868&sign=2f35e9965cebde352858d1e5a5b6d977&redirectUrl=%2fs%2ffund%2fdirect_buy%3fsbuId%3d5%26cid%3d1%26month%3d201810%26shebao_card%3d1%26hukou_type%3d1%26fund%3d500%26nums%3d2%26first_sb%3d0%26first_fund%3d0%26buyShebao%3dtrue%26city%3d%e5%b9%bf%e5%b7%9e%26id_card%3d41************11%26user_name%3d%e9%9f%a6%e5%a4%a7%e5%ae%9d
URI
/s/fund/direct_buy GET/POST
redirectUrl参数
int sbuId //参保人标识
int cid //社保方案标识
int hukou_type //户口类型
int month //参保月份(201508)
int nums //购买月数
int shebao_card //新办卡(0不办卡 1新办卡 2补办卡)
double fund //公积金金额
int first_fund //首次购买公积金
int first_sb //首次购买社保
double sb_wage //社保流水 --------------------- 20181229新加
boolean buyShebao //是否打包社保
boolean added //是否补缴
//以下参数只用于展示购买人信息
String city //社保城市中文名
String id_card //参保人身份证
String user_name //参保人姓名
backUrl参数
String outTradeNo //我的社保单号
String result //支付结果 success/fail
## 三 待支付社保订单完整注册登录跳转支付订单完整请求地址
URI
http://testwdsbh5.shanp.com/reg_login?channel=df7192a91bf243c28e715ec90e53c287&phone=18664850868&sign=2f35e9965cebde352858d1e5a5b6d977&redirectUrl=%2fs%2fshebao%2frepay%2fB0110140000000005201804
URI
/s/shebao/repay/{buyNo} GET/POST
redirectUrl参数
无
backUrl参数
String outTradeNo //我的社保单号
String result //支付结果 success/fail
## 四 待支付公积金订单完整注册登录跳转支付订单完整请求地址
URI
http://testwdsbh5.shanp.com/reg_login?channel=df7192a91bf243c28e715ec90e53c287&phone=18664850868&sign=2f35e9965cebde352858d1e5a5b6d977&redirectUrl=%2fs%2ffund%2frepay%2fB0210010000000005201812
URI
/s/fund/repay/{buyNo} GET/POST
redirectUrl参数
无
backUrl参数
String outTradeNo //我的社保单号
String result //支付结果 success/fail
## 五 社保流水完整注册登录跳转支付订单完整请求地址
URI
http://testwdsbh5.shanp.com/reg_login?channel=df7192a91bf243c28e715ec90e53c287&phone=18664850868&sign=2f35e9965cebde352858d1e5a5b6d977&redirectUrl=%2fs%2fwage%2fpay%2f0110010000000023201812
URI
/s/wage/pay/{wageNo} GET/POST
redirectUrl参数
无
backUrl参数
String outTradeNo //我的社保单号
String result //支付结果 success/fail