不用支付宝的api。太恶心了2M多。
献给对接支付宝h5支付的小伙伴们
public static void main(String[] args) throws UnsupportedEncodingException {
Map<String, String> requestMap = new TreeMap<String, String>();//涉及到排序用treemap
Map<String, String> bizMap = new TreeMap<String, String>();//这个可用hashmap
requestMap.put("app_id", "");//支付宝分配的商户;
requestMap.put("method", "alipay.trade.wap.pay");
requestMap.put("return_url","");//前端回调地址
requestMap.put("charset", "utf-8");
requestMap.put("sign_type", "RSA");//用的rsa rsa2的自行百度 实际差不多
requestMap.put("timestamp", DateUtil.formatDate(new Date(), DateUtil.DATETIME));
requestMap.put("version", "1.0");
requestMap.put("notify_url", "");//后端回调地址
bizMap.put("body", "")