作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult.getTransactionId()
方法的一些代码示例,展示了WxPayOrderNotifyResult.getTransactionId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WxPayOrderNotifyResult.getTransactionId()
方法的具体详情如下:
包路径:com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult
类名称:WxPayOrderNotifyResult
方法名:getTransactionId
暂无
代码示例来源:origin: linlinjava/litemall
String payId = result.getTransactionId();
代码示例来源:origin: jmdhappy/xxpay-master
int updatePayOrderRows = super.baseUpdateStatus4Success(payOrder.getPayOrderId(), result.getTransactionId());
if (updatePayOrderRows != 1) {
_log.error("{}更新支付状态失败,将payOrderId={},更新payStatus={}失败", logPrefix, payOrder.getPayOrderId(), PayConstant.PAY_STATUS_SUCCESS);
payOrder.setChannelOrderNo(result.getTransactionId());
代码示例来源:origin: jmdhappy/xxpay-master
int updatePayOrderRows = super.baseUpdateStatus4Success(payOrder.getPayOrderId(), result.getTransactionId());
if (updatePayOrderRows != 1) {
_log.error("{}更新支付状态失败,将payOrderId={},更新payStatus={}失败", logPrefix, payOrder.getPayOrderId(), PayConstant.PAY_STATUS_SUCCESS);
代码示例来源: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");
}
}
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeCommand.getTransactionId()方法的一些代码示例,展示了ZigBeeCommand.getTra
本文整理了Java中com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult.getTransactionId()方法的一些代码示例
我是一名优秀的程序员,十分优秀!