gpt4 book ai didi

com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult.getOutTradeNo()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 02:59:05 26 4
gpt4 key购买 nike

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

WxPayOrderNotifyResult.getOutTradeNo介绍

暂无

代码示例

代码示例来源:origin: jmdhappy/xxpay-master

String out_trade_no = params.getOutTradeNo();			// 商户系统订单号

代码示例来源:origin: jmdhappy/xxpay-master

String out_trade_no = params.getOutTradeNo();			// 商户系统订单号

代码示例来源:origin: jmdhappy/xxpay-master

String out_trade_no = params.getOutTradeNo();			// 商户系统订单号

代码示例来源:origin: linlinjava/litemall

logger.info(result);
String orderSn = result.getOutTradeNo();
String payId = result.getTransactionId();

代码示例来源:origin: ustcwudi/springboot-seed

@PostMapping("/pay_callback/{type}/{id}/{rid}/{uid}")
public ResponseEntity<?> parseOrderNotifyResult(@ApiParam("支付类型") @PathVariable("type") Integer type,
                        @ApiParam("主键") @PathVariable("id") long id,
                        @ApiParam("外键") @PathVariable("rid") long rid,
                        @ApiParam("用户id") @PathVariable("uid") long uid,
                        @RequestBody String xmlData) throws WxPayException {
  WxPayOrderNotifyResult result = wxPayAPI.parseOrderNotifyResult(xmlData);
  if (result.getReturnCode().equals("SUCCESS")) {
    if (type == 1) {
      Payment payment = paymentService.selectByID(id).get();
      payment.setBankType(result.getBankType());
      payment.setOutTradeNo(result.getOutTradeNo());
      payment.setTransactionNo(result.getTransactionId());
      payment.setComment(result.getReturnCode());
      paymentService.modifyById(payment);
      CarFee carFee = carFeeService.selectByID(rid).get();
      carFee.setPaymentAmount(new BigDecimal(payment.getTotalFee()).divide(new BigDecimal(100)));
      carFee.setPaymentTime(new Date());
      carFee.setPaymentMode("微信支付");
      carFee.setPaymentId(id);
      carFee.setUserId(uid);
      carFeeService.modifyById(carFee);
    } else {
      // todo: 会员充值
    }
    return ResponseEntity.status(HttpStatus.OK).body("SUCCESS");
  } else {
    return ResponseEntity.status(HttpStatus.OK).body("FAIL");
  }
}

代码示例来源:origin: liuweijw/fw-cloud-framework

String out_trade_no = result.getOutTradeNo(); // 商户系统订单号

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