| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
EntPayRedpackRequest.checkConstraints() |
protected void |
EntPayRedpackQueryRequest.checkConstraints() |
protected void |
EntPayBankRequest.checkConstraints() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WxPayOrderNotifyResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess) |
void |
WxPayRefundNotifyResult.decryptReqInfo(String mchKey)
解密并解析reqInfo
|
static WxPayRefundNotifyResult |
WxPayRefundNotifyResult.fromXML(String xmlString,
String mchKey)
从xml字符串创建bean对象.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
ProfitSharingReturnRequest.checkConstraints() |
protected void |
ProfitSharingReturnQueryRequest.checkConstraints() |
protected void |
ProfitSharingRequest.checkConstraints() |
protected void |
ProfitSharingReceiverRequest.checkConstraints() |
protected void |
ProfitSharingQueryRequest.checkConstraints() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WxPayUnifiedOrderRequest.checkAndSign(WxPayConfig config) |
void |
WxPayRefundRequest.checkAndSign(WxPayConfig config) |
void |
BaseWxPayRequest.checkAndSign(WxPayConfig config)
检查参数,并设置签名.
1、检查参数(注意:子类实现需要检查参数的而外功能时,请在调用父类的方法前进行相应判断)
2、补充系统参数,如果未传入则从配置里读取
3、生成签名,并设置进去
|
protected void |
WxPayUnifiedOrderRequest.checkConstraints() |
protected void |
WxPayRefundRequest.checkConstraints() |
protected void |
WxPayRefundQueryRequest.checkConstraints() |
protected void |
WxPayQueryExchangeRateRequest.checkConstraints() |
protected void |
WxPayQueryCommentRequest.checkConstraints()
检查约束情况.
|
protected void |
WxPayOrderReverseRequest.checkConstraints() |
protected void |
WxPayOrderQueryRequest.checkConstraints() |
protected void |
WxPayDownloadFundFlowRequest.checkConstraints() |
protected void |
WxPayDownloadBillRequest.checkConstraints() |
protected abstract void |
BaseWxPayRequest.checkConstraints()
检查约束情况.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WxPaySendRedpackResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess) |
void |
BaseWxPayResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess)
校验返回结果签名.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
WxPayConfig.initApiV3HttpClient()
初始化api v3请求头 自动签名验签
方法参照微信官方https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient
|
SSLContext |
WxPayConfig.initSSLContext()
初始化ssl.
|
| 限定符和类型 | 方法和说明 |
|---|---|
WxPayException |
WxPayException.Builder.build()
Build wx pay exception.
|
static WxPayException |
WxPayException.from(BaseWxPayResult payBaseResult)
通过BaseWxPayResult生成异常对象.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ProfitSharingReceiverResult |
ProfitSharingService.addReceiver(ProfitSharingReceiverRequest request)
服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。
|
String |
WxPayService.authcode2Openid(String authCode)
授权码查询OPENID接口.
|
String |
WxPayService.authcode2Openid(WxPayAuthcode2OpenidRequest request)
授权码查询OPENID接口.
|
WxPayScoreResult |
PayScoreService.cancelServiceOrder(String outOrderNo,
String reason)
支付分取消订单API.
|
WxPayOrderCloseResult |
WxPayService.closeOrder(String outTradeNo)
关闭订单.
|
WxPayOrderCloseResult |
WxPayService.closeOrder(WxPayOrderCloseRequest request)
关闭订单(适合于需要自定义子商户号和子商户appid的情形).
|
<T> T |
EcommerceService.combineTransactions(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单下单-JS支付API.
|
WxPayScoreResult |
PayScoreService.completeServiceOrder(WxPayScoreRequest request)
支付分完结订单API.
|
ApplymentsResult |
EcommerceService.createApply(ApplymentsRequest request)
二级商户进件API
接口地址: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_1.shtml
|
WxPayApplymentCreateResult |
Applyment4SubService.createApply(WxPayApplyment4SubCreateRequest request)
提交申请单API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/
|
<T> T |
WxPayService.createOrder(WxPayConstants.TradeType.Specific<T> specificTradeType,
WxPayUnifiedOrderRequest request)
调用统一下单接口,并组装生成支付所需参数对象.
|
<T> T |
WxPayService.createOrder(WxPayUnifiedOrderRequest request)
调用统一下单接口,并组装生成支付所需参数对象.
|
WxPayScoreResult |
PayScoreService.createServiceOrder(WxPayScoreRequest request)
支付分创建订单API.
|
WxPayScoreResult |
PayScoreService.decryptNotifyDataResource(PayScoreNotifyData data)
支付分回调NotifyData解密resource
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
|
WxPayBillResult |
WxPayService.downloadBill(String billDate,
String billType,
String tarType,
String deviceInfo)
下载对账单.
|
WxPayBillResult |
WxPayService.downloadBill(WxPayDownloadBillRequest request)
下载对账单(适合于需要自定义子商户号和子商户appid的情形).
|
WxPayFundFlowResult |
WxPayService.downloadFundFlow(String billDate,
String accountType,
String tarType)
下载资金账单.
|
WxPayFundFlowResult |
WxPayService.downloadFundFlow(WxPayDownloadFundFlowRequest request)
下载资金账单.
|
String |
WxPayService.downloadRawBill(String billDate,
String billType,
String tarType,
String deviceInfo)
下载对账单.
|
String |
WxPayService.downloadRawBill(WxPayDownloadBillRequest request)
下载对账单(适合于需要自定义子商户号和子商户appid的情形).
|
EntPayResult |
EntPayService.entPay(EntPayRequest request)
企业付款API.
|
WxPayFacepayResult |
WxPayService.facepay(WxPayFacepayRequest request)
提交刷脸支付.
|
Map<String,String> |
WxPayService.getPayInfo(WxPayUnifiedOrderRequest request)
|
String |
EntPayService.getPublicKey()
获取RSA加密公钥API.
|
String |
WxPayService.getSandboxSignKey()
获取仿真测试系统的验签密钥.
|
String |
WxPayService.getV3(URI url)
发送get V3请求,得到响应字符串.
|
WxPayFaceAuthInfoResult |
WxPayService.getWxPayFaceAuthInfo(WxPayFaceAuthInfoRequest request)
获取微信刷脸支付凭证.
|
ImageUploadResult |
MerchantMediaService.imageUploadV3(File imageFile)
通用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
|
WxPayMicropayResult |
WxPayService.micropay(WxPayMicropayRequest request)
提交付款码支付.
|
WxPayScoreResult |
PayScoreService.modifyServiceOrder(WxPayScoreRequest request)
支付分修改订单金额API.
|
void |
Applyment4SubService.modifySettlement(String subMchid,
ModifySettlementRequest request)
修改结算帐号
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_3.shtml
接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/modify-settlement
|
ProfitSharingResult |
ProfitSharingService.multiProfitSharing(ProfitSharingRequest request)
微信订单支付成功后,服务商代子商户发起分账请求,将结算后的钱分到分账接收方。
|
WxPayOrderNotifyResult |
WxPayService.parseOrderNotifyResult(String xmlData)
解析支付结果通知.
|
WxPayOrderNotifyResult |
WxPayService.parseOrderNotifyResult(String xmlData,
String signType)
解析支付结果通知.
|
WxPayRefundNotifyResult |
WxPayService.parseRefundNotifyResult(String xmlData)
解析退款结果通知
详见https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?
|
WxScanPayNotifyResult |
WxPayService.parseScanPayNotifyResult(String xmlData)
解析扫码支付回调通知
详见https://pay.weixin.qq.com/wiki/doc/api/native.php?
|
EntPayBankResult |
EntPayService.payBank(EntPayBankRequest request)
企业付款到银行卡.
|
WxPayScoreResult |
PayScoreService.payServiceOrder(String outOrderNo)
支付分订单收款API.
|
String |
WxPayService.post(String url,
String requestStr,
boolean useKey)
发送post请求,得到响应字符串.
|
byte[] |
WxPayService.postForBytes(String url,
String requestStr,
boolean useKey)
发送post请求,得到响应字节数组.
|
String |
WxPayService.postV3(String url,
org.apache.http.client.methods.HttpPost httpPost)
发送post请求,得到响应字符串.
|
String |
WxPayService.postV3(String url,
String requestStr)
发送post请求,得到响应字符串.
|
String |
WxPayService.postV3WithWechatpaySerial(String url,
String requestStr)
发送post请求,得到响应字符串.
|
ProfitSharingResult |
ProfitSharingService.profitSharing(ProfitSharingRequest request)
单次分账请求按照传入的分账接收方账号和资金进行分账,同时会将订单剩余的待分账金额解冻给特约商户。
|
ProfitSharingResult |
ProfitSharingService.profitSharingFinish(ProfitSharingFinishRequest request)
1、不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给特约商户
2、调用多次分账接口后,需要解冻剩余资金时,调用本接口将剩余的分账金额全部解冻给特约商户
3、已调用请求单次分账后,剩余待分账金额为零,不需要再调用此接口。
|
ProfitSharingQueryResult |
ProfitSharingService.profitSharingQuery(ProfitSharingQueryRequest request)
TODO:微信返回签名失败
发起分账请求后,可调用此接口查询分账结果;发起分账完结请求后,可调用此接口查询分账完结的执行结果。
|
ProfitSharingReturnResult |
ProfitSharingService.profitSharingReturn(ProfitSharingReturnRequest returnRequest)
TODO:这个接口用真实的数据返回【参数不正确】,我对比官方文档除了缺少sub_mch_id,和sub_appid之外其他相同,当我随便填了一个商户id的时候,提示【回退方没有开通分账回退功能】
仅对订单进行退款时,如果订单已经分账,可以先调用此接口将指定的金额从分账接收方(仅限商户类型的分账接收方)回退给特约商户,然后再退款。
|
ProfitSharingReturnResult |
ProfitSharingService.profitSharingReturnQuery(ProfitSharingReturnQueryRequest queryRequest)
TODO:因profitsharingReturn接口无法使用,没有办法对这里进行真实的测试,模拟数据这里返回【记录不存在】
商户需要核实回退结果,可调用此接口查询回退结果。
|
ApplymentsStatusResult |
EcommerceService.queryApplyStatusByApplymentId(String applymentId)
查询申请状态API
请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/{applyment_id}
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
|
ApplymentStateQueryResult |
Applyment4SubService.queryApplyStatusByApplymentId(String applymentId)
通过申请单号查询申请状态
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/applyment_id/{applyment_id}
|
ApplymentStateQueryResult |
Applyment4SubService.queryApplyStatusByBusinessCode(String businessCode)
通过业务申请编号查询申请状态
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/business_code/{business_code}
|
ApplymentsStatusResult |
EcommerceService.queryApplyStatusByOutRequestNo(String outRequestNo)
查询申请状态API
请求URL: https://api.mch.weixin.qq.com/v3/ecommerce/applyments/out-request-no/{out_request_no}
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_2.shtml
|
String |
WxPayService.queryComment(Date beginDate,
Date endDate,
Integer offset,
Integer limit)
拉取订单评价数据.
|
String |
WxPayService.queryComment(WxPayQueryCommentRequest request)
拉取订单评价数据.
|
WxPayCouponInfoQueryResult |
WxPayService.queryCouponInfo(WxPayCouponInfoQueryRequest request)
查询代金券信息.
|
WxPayCouponStockQueryResult |
WxPayService.queryCouponStock(WxPayCouponStockQueryRequest request)
查询代金券批次.
|
EntPayRedpackQueryResult |
EntPayService.queryEnterpriseRedpack(EntPayRedpackQueryRequest request)
企业发送微信红包查询
文档地址:https://work.weixin.qq.com/api/doc
接口地址: https://api.mch.weixin.qq.com/mmpaymkttransfers/queryworkwxredpack
|
EntPayQueryResult |
EntPayService.queryEntPay(EntPayQueryRequest request)
查询企业付款API.
|
EntPayQueryResult |
EntPayService.queryEntPay(String partnerTradeNo)
查询企业付款API.
|
WxPayQueryExchangeRateResult |
WxPayService.queryExchangeRate(String feeType,
String date)
查询汇率
应用场景:商户网站的商品以外币标价时,通过该接口可以实时查询到微信使用的转换汇率。
|
WxPayOrderQueryResult |
WxPayService.queryOrder(String transactionId,
String outTradeNo)
查询订单.
|
WxPayOrderQueryResult |
WxPayService.queryOrder(WxPayOrderQueryRequest request)
查询订单(适合于需要自定义子商户号和子商户appid的情形).
|
EntPayBankQueryResult |
EntPayService.queryPayBank(EntPayBankQueryRequest request)
企业付款到银行卡查询.
|
EntPayBankQueryResult |
EntPayService.queryPayBank(String partnerTradeNo)
企业付款到银行卡查询.
|
WxPayRedpackQueryResult |
RedpackService.queryRedpack(String mchBillNo)
查询红包记录.
|
WxPayRedpackQueryResult |
RedpackService.queryRedpack(WxPayRedpackQueryRequest request)
查询红包记录.
|
WxPayScoreResult |
PayScoreService.queryServiceOrder(String outOrderNo,
String queryId)
支付分查询订单API.
|
SettlementInfoResult |
Applyment4SubService.querySettlementBySubMchid(String subMchid)
通过申请单号查询申请状态
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/applyment4sub/chapter3_4.shtml
接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/settlement
|
WxPayRefundResult |
WxPayService.refund(WxPayRefundRequest request)
微信支付-申请退款.
|
WxPayRefundQueryResult |
WxPayService.refundQuery(String transactionId,
String outTradeNo,
String outRefundNo,
String refundId)
微信支付-查询退款.
|
WxPayRefundQueryResult |
WxPayService.refundQuery(WxPayRefundQueryRequest request)
微信支付-查询退款(适合于需要自定义子商户号和子商户appid的情形).
|
WxPayRefundQueryResult |
WxPayService.refundQueryV2(WxPayRefundQueryRequest request)
微信支付-查询退款API(支持单品).
|
WxPayRefundResult |
WxPayService.refundV2(WxPayRefundRequest request)
申请退款API(支持单品).
|
ProfitSharingReceiverResult |
ProfitSharingService.removeReceiver(ProfitSharingReceiverRequest request)
服务商代子商户发起删除分账接收方请求,删除后不支持将结算后的钱分到该分账接收方。
|
void |
WxPayService.report(WxPayReportRequest request)
交易保障.
|
WxPayOrderReverseResult |
WxPayService.reverseOrder(WxPayOrderReverseRequest request)
撤销订单API.
|
WxPayCouponSendResult |
WxPayService.sendCoupon(WxPayCouponSendRequest request)
发放代金券
接口请求链接:https://api.mch.weixin.qq.com/mmpaymkttransfers/send_coupon
是否需要证书:请求需要双向证书。
|
EntPayRedpackResult |
EntPayService.sendEnterpriseRedpack(EntPayRedpackRequest request)
企业发送微信红包给个人用户
文档地址:https://work.weixin.qq.com/api/doc
接口地址: https://api.mch.weixin.qq.com/mmpaymkttransfers/sendworkwxredpack
|
WxPaySendMiniProgramRedpackResult |
RedpackService.sendMiniProgramRedpack(WxPaySendMiniProgramRedpackRequest request)
发送小程序红包.
|
WxPaySendRedpackResult |
RedpackService.sendRedpack(WxPaySendRedpackRequest request)
发送微信红包给个人用户.
|
String |
WxPayService.shorturl(String longUrl)
转换短链接.
|
String |
WxPayService.shorturl(WxPayShorturlRequest request)
转换短链接.
|
WxPayScoreResult |
PayScoreService.syncServiceOrder(WxPayScoreRequest request)
支付分订单收款API.
|
WxPayUnifiedOrderResult |
WxPayService.unifiedOrder(WxPayUnifiedOrderRequest request)
统一下单(详见https://pay.weixin.qq.com/wiki/doc/api/app/app.php?
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RsaCryptoUtil.encryptFields(Object encryptObject,
X509Certificate certificate) |
Copyright © 2020. All rights reserved.