public class WxProjPayService extends com.ak.open.payment.bas.AProjPayService<WxProjPayService.WxPayCfg> implements com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
WxProjPayService.WxPayCfg |
static class |
WxProjPayService.WxPayTrans |
static class |
WxProjPayService.WxPrePayParams |
| 构造器和说明 |
|---|
WxProjPayService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeOrder(String orderId) |
static PrivateKey |
getPrivateKey(String privKey)
获取私钥。
|
WxMchService |
getService() |
String |
getSign(String timestamp,
String nonceStr,
String prepayId)
作用:使用字段appId、timeStamp、nonceStr、prepayId计算得出的签名值
场景:根据微信统一下单接口返回的 prepay_id 生成调启支付所需的签名值
|
void |
init(WxProjPayService.WxPayCfg cfg) |
String |
prepay(WxProjPayService.WxPrePayParams p) |
WxProjPayService.WxPayTrans |
queryByOrderId(String orderId) |
WxProjPayService.WxPayTrans |
queryByPayId(String payId) |
void |
setService(WxMchService serv) |
public WxMchService getService()
public void init(WxProjPayService.WxPayCfg cfg)
init 在接口中 com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>public void setService(WxMchService serv)
public String prepay(WxProjPayService.WxPrePayParams p)
prepay 在接口中 com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>public WxProjPayService.WxPayTrans queryByPayId(String payId)
queryByPayId 在接口中 com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>public WxProjPayService.WxPayTrans queryByOrderId(String orderId)
queryByOrderId 在接口中 com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>public void closeOrder(String orderId)
closeOrder 在接口中 com.ak.open.payment.bas.IProjPayService<WxProjPayService.WxPayCfg,WxProjPayService.WxPrePayParams,WxProjPayService.WxPayTrans>public String getSign(String timestamp, String nonceStr, String prepayId) throws Exception
Exceptionpublic static PrivateKey getPrivateKey(String privKey) throws IOException
IOExceptionCopyright © 2023. All rights reserved.