| | |
| | | import cc.mrbird.febs.pay.service.impl.JsApiPayComService; |
| | | import cc.mrbird.febs.pay.service.impl.RefundService; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.json.JSONUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness(); |
| | | String paySecret = xcxProperties.getWecharpaySecret(); |
| | | String appId = xcxProperties.getXcxAppid(); |
| | | Boolean debug = xcxProperties.getDebug(); |
| | | String certLocalPath = xcxProperties.getCertLocalPath(); |
| | | if(debug){ |
| | | certLocalPath = "src/main/resources/wxP12/apiclient_cert.p12"; |
| | | } |
| | | |
| | | RefundReqData refundReqData=new RefundReqData(mchID,appId,paySecret, outTradeNo, outRefundNo, totalFee, refundFee,opUserID); |
| | | RefundService refundService=new RefundService(); |
| | |
| | | * @return |
| | | */ |
| | | public boolean comPay(String desc, String outTradeNo,int totalFee, String openid){ |
| | | log.info("后台同意提现申请..."+ desc+outTradeNo+totalFee+openid); |
| | | boolean flag=false; |
| | | try { |
| | | JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness(); |