| | |
| | | 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; |
| | | |
| | |
| | | * @return 预支付订单返回的结果对象(该结果对象已封装),在H5页面使用该对象信息 |
| | | * @throws Exception |
| | | */ |
| | | public BrandWCPayRequestData createActivityOrder(String desc, String outTradeNo, int price, String openId, String attach) throws Exception { |
| | | String wecharActivityPaynotifyUrl = xcxProperties.getWecharActivityPaynotifyUrl(); |
| | | return buildBrandWCPayRequestData(desc, outTradeNo, price, openId, attach, wecharActivityPaynotifyUrl); |
| | | } |
| | | public BrandWCPayRequestData createOrder(String desc, String outTradeNo, int price, String openId, String attach) throws Exception { |
| | | String wecharPaynotifyUrl = xcxProperties.getWecharPaynotifyUrl(); |
| | | return buildBrandWCPayRequestData(desc, outTradeNo, price, openId, attach, wecharPaynotifyUrl); |
| | |
| | | * @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(); |