202010-08 SpringBoot 微信退款功能的示例代码 一:微信支付证书配置二:证书读取以及读取后的使用packagecom.zhx.guides.assistant.config.wechatpay;importorg.apache.commons.io.IOUtils;importorg.apache.http.HttpEntity;importorg.apache.http.client.methods.CloseableHttpResponse;importorg.apache.http.client.methods.HttpPost;importorg.apache.http.conn.ssl.SSLConnectionSocketFactory;importorg.apache.http.entity.StringEntity;importorg.apache.htt... 继续阅读 >
202009-24 Java后台实现微信支付和微信退款 微信支付流程都是我自己工作中开发的,亲测可用,不喜勿喷。controller中我是这么写的,你们需要根据自己的业务需求改动。ResponseBean是我自己封装的,你们可以改成你们想要的形式。/***微信统一下单接口*@return*/@RequestMapping(value="/doUnifiedOrder",method=RequestMethod.POST)publicResponseBeandoUnifiedOrder(@RequestBodyMap<String,Object>req){MapresultMap=newHashMap();Stri... 继续阅读 >