Bootstrap

H5APP WEB 支付开发 (银联 微信 支付宝)流程

这里采用ionic+angular进行前台开发 ssh+jpay做后台支付接口

银联:配置好参数 接口采用JPAY 他会自动生成HTML并提交表单到银联 app只需用iframe套用就行 paylog为记录订单过程数据

controller

/**
 * app银联支付
 * @param payLogId
 * @param response
 */
@RequestMapping(value = "appUnionpay", method = RequestMethod.GET)
public  void appUnionpay(@RequestParam("payLogId")int payLogId,HttpServletResponse response){
    PayLog payLog = payLogService.findById(payLogId);
    //初始化接口参数配置
    UnionPayBean unionPayBean = new UnionPayBean();
    int transactionPrice1 = new Double(payLog.getTransactionPrice()*100).intValue();
    SDKConfig.getConfig().loadPropertiesFromSrc();
    unionPayBean.setMerId(unionMerId);
    unionPayBean.setOrderId(payLog.getOutBizNo());
    unionPayBean.setChannelType(ChannelType.CHANNEL_MOBILE.getName())
;