- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest
类的一些代码示例,展示了WxPayUnifiedOrderRequest
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WxPayUnifiedOrderRequest
类的具体详情如下:
包路径:com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest
类名称:WxPayUnifiedOrderRequest
[英]```
统一下单请求参数对象.
参考文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1
Created by Binary Wang on 2016/9/25.
[中]```
统一下单请求参数对象.
参考文档:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1
Created by Binary Wang on 2016/9/25.
代码示例来源:origin: jmdhappy/xxpay-master
if(tradeType.equals(PayConstant.WxConstant.TRADE_TYPE_MWEB)) sceneInfo = JSON.parseObject(payOrder.getExtra()).getString("sceneInfo");
WxPayUnifiedOrderRequest request = new WxPayUnifiedOrderRequest();
request.setDeviceInfo(deviceInfo);
request.setBody(body);
request.setDetail(detail);
request.setAttach(attach);
request.setOutTradeNo(outTradeNo);
request.setFeeType(feeType);
request.setTotalFee(totalFee);
request.setSpbillCreateIp(spBillCreateIP);
request.setTimeStart(timeStart);
request.setTimeExpire(timeExpire);
request.setGoodsTag(goodsTag);
request.setNotifyURL(notifyUrl);
request.setTradeType(tradeType);
request.setProductId(productId);
request.setLimitPay(limitPay);
request.setOpenid(openId);
request.setSceneInfo(sceneInfo);
代码示例来源:origin: ustcwudi/springboot-seed
@ApiParam("停车记录") @RequestParam("carFee") Long carFeeId) throws Exception {
OAuth2Authentication auth = (OAuth2Authentication) SecurityContextHolder.getContext().getAuthentication();
WxPayUnifiedOrderRequest request = new WxPayUnifiedOrderRequest();
SecurityUser securityUser = (SecurityUser) (auth.getPrincipal());
CarFee carFee = carFeeService.selectByID(carFeeId).get();
request.setOpenid(securityUser.getOpenId());
request.setDeviceInfo("ma");
request.setBody(park.getName());
request.setDetail(carFee.getCarNumber() + "-停车费");
request.setFeeType("CNY");
request.setTotalFee(money.intValue());
request.setSpbillCreateIp(httpRequest.getLocalAddr());
request.setTradeType("JSAPI");
payment.setBody(request.getBody());
payment.setDetail(request.getDetail());
payment.setTotalFee(money.intValue());
payment.setFeeType(request.getFeeType());
payment.setTradeType(request.getTradeType());
payment.setIp(request.getSpbillCreateIp());
paymentService.add(payment);
request.setNotifyUrl(String.format("https://app.lhzh.tech/third/park/pay_callback/1/%d/%d/%d", payment.getId(), carFeeId, securityUser.getId()));
request.setOutTradeNo(String.format("1-%d-%d-%d-%d", securityUser.getId(), payment.getId(), carFeeId, new Random().nextInt(9999)));
WxPayUnifiedOrderResult result = wxPayAPI.unifiedOrder(request);
map.put("nonceStr", result.getNonceStr());
代码示例来源:origin: linlinjava/litemall
WxPayUnifiedOrderRequest orderRequest = new WxPayUnifiedOrderRequest();
orderRequest.setOutTradeNo(order.getOrderSn());
orderRequest.setOpenid(openid);
orderRequest.setBody("订单:" + order.getOrderSn());
orderRequest.setTotalFee(fee);
orderRequest.setSpbillCreateIp(IpUtil.getIpAddr(request));
代码示例来源:origin: com.github.binarywang/weixin-java-pay
@Override
public void checkAndSign(WxPayConfig config) throws WxPayException {
if (StringUtils.isBlank(this.getNotifyUrl())) {
this.setNotifyUrl(config.getNotifyUrl());
}
if (StringUtils.isBlank(this.getTradeType())) {
this.setTradeType(config.getTradeType());
}
super.checkAndSign(config);
}
代码示例来源:origin: binarywang/WxJava
@Override
public void checkAndSign(WxPayConfig config) throws WxPayException {
if (StringUtils.isBlank(this.getNotifyUrl())) {
this.setNotifyUrl(config.getNotifyUrl());
}
if (StringUtils.isBlank(this.getTradeType())) {
this.setTradeType(config.getTradeType());
}
super.checkAndSign(config);
}
代码示例来源:origin: jmdhappy/xxpay-master
if(tradeType.equals(PayConstant.WxConstant.TRADE_TYPE_MWEB)) sceneInfo = JSON.parseObject(payOrder.getExtra()).getString("sceneInfo");
WxPayUnifiedOrderRequest request = new WxPayUnifiedOrderRequest();
request.setDeviceInfo(deviceInfo);
request.setBody(body);
request.setDetail(detail);
request.setAttach(attach);
request.setOutTradeNo(outTradeNo);
request.setFeeType(feeType);
request.setTotalFee(totalFee);
request.setSpbillCreateIp(spBillCreateIP);
request.setTimeStart(timeStart);
request.setTimeExpire(timeExpire);
request.setGoodsTag(goodsTag);
request.setNotifyURL(notifyUrl);
request.setTradeType(tradeType);
request.setProductId(productId);
request.setLimitPay(limitPay);
request.setOpenid(openId);
request.setSceneInfo(sceneInfo);
return request;
代码示例来源:origin: jmdhappy/xxpay-master
if(tradeType.equals(PayConstant.WxConstant.TRADE_TYPE_MWEB)) sceneInfo = JSON.parseObject(payOrder.getExtra()).getString("sceneInfo");
WxPayUnifiedOrderRequest request = new WxPayUnifiedOrderRequest();
request.setDeviceInfo(deviceInfo);
request.setBody(body);
request.setDetail(detail);
request.setAttach(attach);
request.setOutTradeNo(outTradeNo);
request.setFeeType(feeType);
request.setTotalFee(totalFee);
request.setSpbillCreateIp(spBillCreateIP);
request.setTimeStart(timeStart);
request.setTimeExpire(timeExpire);
request.setGoodsTag(goodsTag);
request.setNotifyURL(notifyUrl);
request.setTradeType(tradeType);
request.setProductId(productId);
request.setLimitPay(limitPay);
request.setOpenid(openId);
request.setSceneInfo(sceneInfo);
代码示例来源:origin: liuweijw/fw-cloud-framework
sceneInfo = JSON.parseObject(payOrder.getExtra()).getString("sceneInfo");
WxPayUnifiedOrderRequest request = new WxPayUnifiedOrderRequest();
request.setDeviceInfo(deviceInfo);
request.setBody(body);
request.setDetail(detail);
request.setAttach(attach);
request.setOutTradeNo(outTradeNo);
request.setFeeType(feeType);
request.setTotalFee(totalFee);
request.setSpbillCreateIp(spBillCreateIP);
request.setTimeStart(timeStart);
request.setTimeExpire(timeExpire);
request.setGoodsTag(goodsTag);
request.setNotifyUrl(notifyUrl);
request.setTradeType(tradeType);
request.setProductId(productId);
request.setLimitPay(limitPay);
request.setOpenid(openId);
request.setSceneInfo(sceneInfo);
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setNotifyUrl()方法的一些代码示例,
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setSpbillCreateIp()方法的一些
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setAttach()方法的一些代码示例,展示了
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setLimitPay()方法的一些代码示例,展
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setDeviceInfo()方法的一些代码示例
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setTimeExpire()方法的一些代码示例
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setTimeStart()方法的一些代码示例,
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setGoodsTag()方法的一些代码示例,展
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setTradeType()方法的一些代码示例,
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setFeeType()方法的一些代码示例,展示
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setProductId()方法的一些代码示例,
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setTotalFee()方法的一些代码示例,展
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setOpenid()方法的一些代码示例,展示了
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setDetail()方法的一些代码示例,展示了
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setSceneInfo()方法的一些代码示例,
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.()方法的一些代码示例,展示了WxPayUnif
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setBody()方法的一些代码示例,展示了Wx
本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest.setOutTradeNo()方法的一些代码示例
我是一名优秀的程序员,十分优秀!