@Lazy
@DependsOn(value={"weiXinProperties","weiXinTokenManager","webClientUtils"})
@Component
public class SyncWeiXinPay
extends Object
| 构造器和说明 |
|---|
SyncWeiXinPay() |
| 限定符和类型 | 方法和说明 |
|---|---|
PayResultVO |
createPrePay(OrderInfoDTO orderInfoDTO,
String userAgent)
创建预支付订单
|
ExecutePayVO |
getExecutePayVO(String prePayId)
调起支付
|
public PayResultVO createPrePay(OrderInfoDTO orderInfoDTO, String userAgent) throws WeiXinPayException
orderInfoDTO - 订单信息userAgent - 微信要求发起请求的客户端在每一次请求中都使用HTTP头 User-Agent来标示自己,微信支付API v3很可能会拒绝处理无User-Agent 的请求。WeiXinPayException - 微信接口返回状态码非200时,抛出异常,需要调用者自行处理public ExecutePayVO getExecutePayVO(String prePayId) throws Exception
prePayId - 预支付交易会话标识Exception - 签名异常createPrePay(OrderInfoDTO, java.lang.String)Copyright © 2021. All rights reserved.