| | |
| | | package com.doumee.core.wx.pay; |
| | | import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.github.binarywang.wxpay.config.WxPayConfig; |
| | | import okhttp3.HttpUrl; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.security.KeyFactory; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.security.PrivateKey; |
| | | import java.security.Signature; |
| | | import java.security.spec.PKCS8EncodedKeySpec; |
| | | import java.util.Base64; |
| | |
| | | |
| | | public static void getBill(){ |
| | | // 创建微信支付API对象 |
| | | WxPayConfig config = new WxPayConfig(); |
| | | // WxPay wxpay = new WxMaServiceImpl(); |
| | | // wxpay.setWxMaConfig(config); |
| | | |