Environmental preparation
- For the enterprise version of the applet, the appId and appSecret of the applet are obtained here.
- The small program opens WeChat payment, which involves the merchant account, and binds the merchant account and WeChat.
下单URL地址:https://api.mch.weixin.qq.com/pay/unifiedorder
Some parameters are as follows:
add dependencies
<!-- 微信支付生成随机字符序列的依赖-->
<dependency>
<groupId>com.github.wxpay