|
@@ -1029,8 +1029,16 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }else if (StringUtils.equals(paymentChannel, "YQPAY")) {
|
|
|
-
|
|
|
+ }else if (StringUtils.equals(paymentChannel, "YEEPAY")) {
|
|
|
+ OrderQueryYopQueryOrderResDTOResult result = yeepayPaymentService.queryOrder(hfMerchantConfig.getAppId(), hfMerchantConfig.getPlatformPayeeMemberId(), studentPaymentOrder.getMerNos(), orderNo);
|
|
|
+ String status = result.getStatus();
|
|
|
+ if (status.equals("SUCCESS")) {
|
|
|
+ return PayStatus.SUCCESSED;
|
|
|
+ } else if (status.equals("TIME_OUT") || status.equals("FAIL") || status.equals("CLOSE")) {
|
|
|
+ return PayStatus.FAILED;
|
|
|
+ } else {
|
|
|
+ return PayStatus.PAYING;
|
|
|
+ }
|
|
|
}
|
|
|
throw new BizException("支付渠道错误");
|
|
|
}
|