| | |
| | | params.put("out_trade_no", orderNumber); |
| | | params.put("total_fee", String.valueOf(i) ); |
| | | params.put("spbill_create_ip", "221.182.45.100"); // 实际应用中应获取客户端IP |
| | | params.put("notify_url", "http://221.182.45.100:8084"+callbackPath); |
| | | params.put("notify_url", "http://47.120.5.122:8080"+callbackPath); |
| | | params.put("trade_type", "NATIVE"); |
| | | // 生成签名 |
| | | String sign = weixinSignature(params); |
| | |
| | | params.put("out_trade_no", orderNumber); |
| | | params.put("total_fee", String.valueOf(i) ); |
| | | params.put("spbill_create_ip", "221.182.45.100"); // 实际应用中应获取客户端IP |
| | | params.put("notify_url", "http://221.182.45.100:8084"+callbackPath); |
| | | params.put("notify_url", "http://47.120.5.122:8080"+callbackPath); |
| | | params.put("trade_type", "JSAPI"); |
| | | params.put("openid", openid); |
| | | |