gpt4 book ai didi

com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest类的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 12:33:05 27 4
gpt4 key购买 nike

本文整理了Java中com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest类的一些代码示例,展示了WxPayUnifiedOrderRequest类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WxPayUnifiedOrderRequest类的具体详情如下:
包路径:com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest
类名称: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);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com