| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
EntPayRedpackRequest.checkConstraints() |
protected void |
EntPayRedpackQueryRequest.checkConstraints() |
protected void |
EntPayBankRequest.checkConstraints() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
EntWxEmpPayRequest.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() |
protected void |
ProfitSharingOrderAmountQueryRequest.checkConstraints() |
protected void |
ProfitSharingMerchantRatioQueryRequest.checkConstraints() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WxPayUnifiedOrderRequest.checkAndSign(WxPayConfig config) |
void |
WxPayRefundRequest.checkAndSign(WxPayConfig config) |
void |
BaseWxPayRequest.checkAndSign(WxPayConfig config)
检查参数,并设置签名.
1、检查参数(注意:子类实现需要检查参数的而外功能时,请在调用父类的方法前进行相应判断)
2、补充系统参数,如果未传入则从配置里读取
3、生成签名,并设置进去
|
protected void |
WxWithholdRequest.checkConstraints() |
protected void |
WxWithholdOrderQueryRequest.checkConstraints() |
protected void |
WxTerminatedContractRequest.checkConstraints() |
protected void |
WxSignQueryRequest.checkConstraints() |
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 |
WxPayEntrustRequest.checkConstraints() |
protected void |
WxPayDownloadFundFlowRequest.checkConstraints() |
protected void |
WxPayDownloadBillRequest.checkConstraints() |
protected void |
WxMpEntrustRequest.checkConstraints() |
protected void |
WxMaEntrustRequest.checkConstraints() |
protected void |
WxH5EntrustRequest.checkConstraints() |
protected abstract void |
BaseWxPayRequest.checkConstraints()
检查约束情况.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WxWithholdNotifyResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess) |
void |
WxSignStatusNotifyResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess) |
void |
WxPaySendRedpackResult.checkResult(WxPayService wxPayService,
String signType,
boolean checkSuccess) |
void |
WxPayEntrustResult.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生成异常对象.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ProfitSharingReceiver |
ProfitSharingV3Service.addProfitSharingReceiver(ProfitSharingReceiver receiver)
添加分账接收方API
商户发起添加分账接收方请求,建立分账接收方列表。
|
ProfitSharingReceiverResult |
ProfitSharingService.addReceiver(ProfitSharingReceiverRequest request)
服务商代子商户发起添加分账接收方请求,后续可通过发起分账请求将结算后的钱分到该分账接收方。
|
ProfitSharingReceiverResult |
EcommerceService.addReceivers(ProfitSharingReceiverRequest request)
添加分账接收方API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_7.shtml
|
TradeBillResult |
EcommerceService.applyBill(TradeBillRequest request)
请求账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.shtml
|
FundBillResult |
EcommerceService.applyFundBill(FundBillTypeEnum billType,
FundBillRequest request)
申请资金账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/bill/chapter3_2.shtml
|
WxPayApplyBillV3Result |
WxPayService.applyFundFlowBill(WxPayApplyFundFlowBillV3Request request)
申请资金账单API
微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。
|
WxPayApplyBillV3Result |
WxPayService.applyTradeBill(WxPayApplyTradeBillV3Request request)
申请交易账单API
微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。
|
String |
WxPayService.authcode2Openid(String authCode)
授权码查询OPENID接口.
|
String |
WxPayService.authcode2Openid(WxPayAuthcode2OpenidRequest request)
授权码查询OPENID接口.
|
String |
MarketingBusiFavorService.buildBusiFavorCouponinfoUrl(BusiFavorCouponsUrlRequest request)
商家券接口-H5发券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_4_1.shtml
接口链接:https://action.weixin.qq.com/busifavor/getcouponinfo
|
WxPayScoreResult |
PayScoreService.cancelServiceOrder(String outOrderNo,
String reason)
支付分取消订单API.
|
void |
WxPayService.closeCombine(CombineCloseRequest request)
合单关闭订单API
请求URL: https://api.mch.weixin.qq.com/v3/combine-transactions/out-trade-no/{combine_out_trade_no}/close
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_12.shtml
|
WxPayOrderCloseResult |
WxPayService.closeOrder(String outTradeNo)
关闭订单.
|
WxPayOrderCloseResult |
WxPayService.closeOrder(WxPayOrderCloseRequest request)
关闭订单(适合于需要自定义子商户号和子商户appid的情形).
|
void |
WxPayService.closeOrderV3(String outTradeNo)
关闭订单
应用场景
以下情况需要调用关单接口:
1、商户订单支付失败需要生成新单号重新发起支付,要对原订单号调用关单,避免重复支付;
2、系统下单后,用户支付超时,系统退出不再受理,避免用户继续,请调用关单接口。
|
void |
WxPayService.closeOrderV3(WxPayOrderCloseV3Request request)
关闭订单
应用场景
以下情况需要调用关单接口:
1、商户订单支付失败需要生成新单号重新发起支付,要对原订单号调用关单,避免重复支付;
2、系统下单后,用户支付超时,系统退出不再受理,避免用户继续,请调用关单接口。
|
String |
EcommerceService.closePartnerTransactions(PartnerTransactionsCloseRequest request)
关闭普通订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_6.shtml
|
CombineTransactionsResult |
WxPayService.combine(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
TransactionsResult |
EcommerceService.combine(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
<T> T |
WxPayService.combineTransactions(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
<T> T |
EcommerceService.combineTransactions(TradeTypeEnum tradeType,
CombineTransactionsRequest request)
合单支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
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/
|
BusiFavorCallbacksResult |
MarketingBusiFavorService.createBusiFavorCallbacks(BusiFavorCallbacksRequest request)
商家券接口-设置商家券事件通知地址 API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_7.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/callbacks
|
BusiFavorStocksCreateResult |
MarketingBusiFavorService.createBusiFavorStocksV3(BusiFavorStocksCreateRequest request)
商家券接口-创建商家券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks
|
FavorCouponsCreateResult |
MarketingFavorService.createFavorCouponsV3(String openid,
FavorCouponsCreateRequest request)
代金券接口-发放代金券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
|
FavorStocksCreateResult |
MarketingFavorService.createFavorStocksV3(FavorStocksCreateRequest request)
代金券接口-创建代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks
|
<T> T |
WxPayService.createOrder(WxPayConstants.TradeType.Specific<T> specificTradeType,
WxPayUnifiedOrderRequest request)
调用统一下单接口,并组装生成支付所需参数对象.
|
<T> T |
WxPayService.createOrder(WxPayUnifiedOrderRequest request)
调用统一下单接口,并组装生成支付所需参数对象.
|
<T> T |
WxPayService.createOrderV3(TradeTypeEnum tradeType,
WxPayUnifiedOrderV3Request request)
调用统一下单接口,并组装生成支付所需参数对象.
|
WxPayScoreResult |
PayScoreService.createServiceOrder(WxPayScoreRequest request)
支付分创建订单API.
|
BusiFavorCouponsDeactivateResult |
MarketingBusiFavorService.deactiveBusiFavorCoupons(BusiFavorCouponsDeactivateRequest request)
商家券接口-使券失效API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_15.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/coupons/deactivate
|
WxPayScoreResult |
PayScoreService.decryptNotifyDataResource(PayScoreNotifyData data)
支付分回调NotifyData解密resource
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
|
FavorCouponsUseResult |
MarketingFavorService.decryptNotifyDataResource(UseNotifyData data) |
PaidResult |
BusinessCircleService.decryptPaidNotifyDataResource(BusinessCircleNotifyData data) |
RefundResult |
BusinessCircleService.decryptRefundNotifyDataResource(BusinessCircleNotifyData data) |
ProfitSharingReceiver |
ProfitSharingV3Service.deleteProfitSharingReceiver(ProfitSharingReceiver receiver)
删除分账接收方API
商户发起删除分账接收方请求。
|
ProfitSharingReceiverResult |
EcommerceService.deleteReceivers(ProfitSharingReceiverRequest request)
删除分账接收方API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_8.shtml
|
InputStream |
WxPayService.downloadBill(String url)
下载账单API
下载账单API为通用接口,交易/资金账单都可以通过该接口获取到对应的账单。
|
InputStream |
EcommerceService.downloadBill(String url)
下载账单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/bill.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的情形).
|
InputStream |
WxPayService.downloadV3(String url)
发送下载 V3请求,得到响应流.
|
EntPayResult |
EntPayService.entPay(EntPayRequest request)
企业付款API.
|
WxPayFacepayResult |
WxPayService.facepay(WxPayFacepayRequest request)
提交刷脸支付.
|
ProfitSharingResult |
EcommerceService.finishOrder(FinishOrderRequest request)
完结分账API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_5.shtml
|
BusiFavorStocksGetResult |
MarketingBusiFavorService.getBusiFavorStocksV3(String stockId)
商家券接口-查询商家券详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/{stock_id}
|
FavorCouponsGetResult |
MarketingFavorService.getFavorCouponsV3(String couponId,
String appid,
String openid)
代金券接口-查询代金券详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_6.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons/{coupon_id}
|
FavorStocksItemsGetResult |
MarketingFavorService.getFavorStocksItemsV3(String stockId,
String stockCreatorMchid,
Integer offset,
Integer limit)
代金券接口-查询代金券可用单品API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_8.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/items
|
FavorStocksMerchantsGetResult |
MarketingFavorService.getFavorStocksMerchantsV3(String stockId,
String stockCreatorMchid,
Integer offset,
Integer limit)
代金券接口-查询代金券可用商户API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_7.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/merchants
|
FavorStocksFlowGetResult |
MarketingFavorService.getFavorStocksRefundFlowV3(String stockId)
代金券接口-下载批次退款明细API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_11.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/refund-flow
|
FavorStocksFlowGetResult |
MarketingFavorService.getFavorStocksUseFlowV3(String stockId)
代金券接口-下载批次核销明细API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_10.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/use-flow
|
FavorStocksGetResult |
MarketingFavorService.getFavorStocksV3(String stockId,
String stockCreatorMchid)
代金券接口-查询批次详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_5.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}
|
Map<String,String> |
WxPayService.getPayInfo(WxPayUnifiedOrderRequest request)
|
ProfitSharingResult |
ProfitSharingV3Service.getProfitSharingResult(String outOrderNo,
String transactionId)
查询分账结果API
发起分账请求后,可调用此接口查询分账结果
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/profitsharing/orders/{out_order_no}
注意:
• 发起解冻剩余资金请求后,可调用此接口查询解冻剩余资金的结果
|
ProfitSharingReturnResult |
ProfitSharingV3Service.getProfitSharingReturnResult(String outOrderNo,
String outReturnNo)
查询分账回退结果API
商户需要核实回退结果,可调用此接口查询回退结果
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_4.shtml
接口链接:https://api.mch.weixin.qq.com/v3/profitsharing/return-orders/{out_return_no}
注意:
• 如果分账回退接口返回状态为处理中,可调用此接口查询回退结果
|
ProfitSharingUnsplitResult |
ProfitSharingV3Service.getProfitSharingUnsplitAmount(String transactionId)
查询剩余待分金额API
可调用此接口查询订单剩余待分金额
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_6.shtml
接口链接: https://api.mch.weixin.qq.com/v3/profitsharing/transactions/{transaction_id}/amounts
|
String |
EntPayService.getPublicKey()
获取RSA加密公钥API.
|
String |
WxPayService.getSandboxSignKey()
获取仿真测试系统的验签密钥.
|
String |
WxPayService.getV3(String url)
发送get V3请求,得到响应字符串.
|
WxPayFaceAuthInfoResult |
WxPayService.getWxPayFaceAuthInfo(WxPayFaceAuthInfoRequest request)
获取微信刷脸支付凭证.
|
WxH5EntrustResult |
WxEntrustPapService.h5Sign(WxH5EntrustRequest wxH5EntrustRequest)
获取h5纯签约支付跳转链接
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_4.shtml
返回一个签约链接 在浏览器请求链接拉起微信
|
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
|
MarketingImageUploadResult |
MarketingMediaService.imageUploadV3(File imageFile)
营销专用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_0_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/media/image-upload
|
ImageUploadResult |
MerchantMediaService.imageUploadV3(InputStream inputStream,
String fileName)
通用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
|
MarketingImageUploadResult |
MarketingMediaService.imageUploadV3(InputStream inputStream,
String fileName)
营销专用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_0_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/media/image-upload
|
String |
WxEntrustPapService.maSign(WxMaEntrustRequest wxMaEntrustRequest)
获取小程序纯签约参数json
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_3.shtml
返回一个json 前端用来拉起一个新的签约小程序进行签约
|
WxPayMicropayResult |
WxPayService.micropay(WxPayMicropayRequest request)
提交付款码支付.
|
WxPayScoreResult |
PayScoreService.modifyServiceOrder(WxPayScoreRequest request)
支付分修改订单金额API.
|
String |
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
|
void |
EcommerceService.modifySettlement(String subMchid,
SettlementRequest request)
修改结算帐号API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_4.shtml
|
String |
WxEntrustPapService.mpSign(WxMpEntrustRequest wxMpEntrustRequest)
获取公众号纯签约链接,
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_1.shtml
该接口返回一个签约链接,该链接只能在微信内打开
|
ProfitSharingResult |
ProfitSharingService.multiProfitSharing(ProfitSharingRequest request)
微信订单支付成功后,服务商代子商户发起分账请求,将结算后的钱分到分账接收方。
|
BusiFavorNotifyResult |
MarketingBusiFavorService.notifyBusiFavor(String url,
BusiFavorNotifyRequest request)
商家券接口-领券事件回调通知API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_15.shtml
|
void |
BusinessCircleService.notifyPoints(PointsNotifyRequest request)
智慧商圈接口-商圈积分同步API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/businesscircle/chapter3_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/businesscircle/points/notify
|
WxWithholdOrderQueryResult |
WxEntrustPapService.papOrderQuery(WxWithholdOrderQueryRequest wxWithholdOrderQueryRequest)
查询代扣订单
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter4_5.shtml
该接口仅提供微信扣款服务申请扣款接口创建的订单进行查询,商户可以通过该接口主动查询微信代扣订单状态,完成下一步的业务逻辑。
|
CombineNotifyResult |
WxPayService.parseCombineNotifyResult(String notifyData,
SignatureHeader header)
合单支付通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_13.shtml
|
CombineTransactionsNotifyResult |
EcommerceService.parseCombineNotifyResult(String notifyData,
SignatureHeader header)
合单支付通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e-combine.shtml
|
PayScoreNotifyData |
PayScoreService.parseNotifyData(String data,
SignatureHeader header)
支付分回调内容解析方法
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
|
UseNotifyData |
MarketingFavorService.parseNotifyData(String data,
SignatureHeader header) |
BusinessCircleNotifyData |
BusinessCircleService.parseNotifyData(String data,
SignatureHeader header) |
WxPayOrderNotifyResult |
WxPayService.parseOrderNotifyResult(String xmlData)
解析支付结果通知.
|
WxPayOrderNotifyResult |
WxPayService.parseOrderNotifyResult(String xmlData,
String signType)
解析支付结果通知.
|
WxPayOrderNotifyV3Result |
WxPayService.parseOrderNotifyV3Result(String notifyData,
SignatureHeader header)
解析支付结果v3通知.
|
PartnerTransactionsNotifyResult |
EcommerceService.parsePartnerNotifyResult(String notifyData,
SignatureHeader header)
普通支付通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/e_transactions.shtml
|
WxPayRefundNotifyResult |
WxPayService.parseRefundNotifyResult(String xmlData)
解析退款结果通知
详见https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?
|
RefundNotifyResult |
EcommerceService.parseRefundNotifyResult(String notifyData,
SignatureHeader header)
退款通知回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_3.shtml
|
WxPayRefundNotifyV3Result |
WxPayService.parseRefundNotifyV3Result(String notifyData,
SignatureHeader header)
解析退款结果通知
详见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?
|
WxScanPayNotifyResult |
WxPayService.parseScanPayNotifyResult(String xmlData,
String signType)
解析扫码支付回调通知
详见https://pay.weixin.qq.com/wiki/doc/api/native.php?
|
UserAuthorizationStatusNotifyResult |
PayScoreService.parseUserAuthorizationStatusNotifyResult(String notifyData,
SignatureHeader header)
授权/解除授权服务回调数据处理
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter4_4.shtml
|
TransactionsResult |
EcommerceService.partner(TradeTypeEnum tradeType,
PartnerTransactionsRequest request)
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
<T> T |
EcommerceService.partnerTransactions(TradeTypeEnum tradeType,
PartnerTransactionsRequest request)
服务商模式普通支付API(APP支付、JSAPI支付、H5支付、NATIVE支付).
|
String |
WxPayService.patchV3(String url,
String requestStr)
发送patch请求,得到响应字符串.
|
FavorStocksPauseResult |
MarketingFavorService.pauseFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-暂停代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_13.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/pause
|
EntPayBankResult |
EntPayService.payBank(EntPayBankRequest request)
企业付款到银行卡.
|
WxPayScoreResult |
PayScoreService.payServiceOrder(String outOrderNo)
支付分订单收款API.
|
WxPayEntrustResult |
WxEntrustPapService.paySign(WxPayEntrustRequest wxPayEntrustRequest)
支付中签约
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_5.shtml
请求微信 若微信内请求 需要构造json返回,
若h5请求 直接使用mweb_url 链接即可拉起微信
|
WxPayScoreResult |
PayScoreService.permissions(WxPayScoreRequest request)
支付分商户预授权API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/payscore/permissions
|
WxPayScoreResult |
PayScoreService.permissionsQueryByAuthorizationCode(String authorizationCode)
支付分查询与用户授权记录(授权协议号)API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_2.shtml
接口链接:https://api.mch.weixin.qq.com/v3/payscore/permissions/authorization-code/{authorization_code}
|
WxPayScoreResult |
PayScoreService.permissionsQueryByOpenId(String openId)
支付分查询与用户授权记录(openid)API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_4shtml
接口链接:https://api.mch.weixin.qq.com/v3/payscore/permissions/openid/{openid}
|
WxPayScoreResult |
PayScoreService.permissionsTerminateByAuthorizationCode(String authorizationCode,
String reason)
解除用户授权关系(授权协议号)API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_3.shtml
接口链接:https://api.mch.weixin.qq.com/v3/payscore/permissions/authorization-code/{authorization_code}/terminate
|
WxPayScoreResult |
PayScoreService.permissionsTerminateByOpenId(String openId,
String reason)
解除用户授权关系(openid)API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/chapter5_5.shtml
接口链接:https://api.mch.weixin.qq.com/v3/payscore/permissions/openid/{openid}/terminate
|
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请求,得到响应字符串.
|
String |
WxEntrustPapService.preWithhold(WxPreWithholdRequest wxPreWithholdRequest)
预扣费通知
预扣费接口
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_10.shtml
商户进行委托代扣扣费前需要在可通知时间段内调用「预扣费通知」的接口为用户发送扣费提醒,
并设定扣费持续天数和预计扣费金额,经过扣费等待期后,在可扣费期内可发起扣费,扣款金额不能高于预计扣费金额,
扣费失败可主动发起重试扣费(重试次数由其他规则限制),直到扣费成功,或者可扣费期结束。
|
ProfitSharingResult |
ProfitSharingV3Service.profitSharing(ProfitSharingRequest request)
请求分账API
微信订单支付成功后,商户发起分账请求,将结算后的资金分到分账接收方
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_1.shtml
接口链接: https://api.mch.weixin.qq.com/v3/profitsharing/orders
注意:
对同一笔订单最多能发起20次分账请求,每次请求最多分给50个接收方
此接口采用异步处理模式,即在接收到商户请求后,优先受理请求再异步处理,最终的分账结果可以通过查询分账接口获取
|
ProfitSharingResult |
ProfitSharingService.profitSharing(ProfitSharingRequest request)
单次分账请求按照传入的分账接收方账号和资金进行分账,同时会将订单剩余的待分账金额解冻给特约商户。
|
ProfitSharingResult |
EcommerceService.profitSharing(ProfitSharingRequest request)
请求分账API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
|
ProfitSharingResult |
ProfitSharingService.profitSharingFinish(ProfitSharingFinishRequest request)
1、不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给特约商户
2、调用多次分账接口后,需要解冻剩余资金时,调用本接口将剩余的分账金额全部解冻给特约商户
3、已调用请求单次分账后,剩余待分账金额为零,不需要再调用此接口。
|
ProfitSharingMerchantRatioQueryResult |
ProfitSharingService.profitSharingMerchantRatioQuery(ProfitSharingMerchantRatioQueryRequest request)
服务商可以查询子商户设置的允许服务商分账的最大比例。
|
ProfitSharingOrderAmountQueryResult |
ProfitSharingService.profitSharingOrderAmountQuery(ProfitSharingOrderAmountQueryRequest request)
服务商可通过调用此接口查询订单剩余待分金额。
|
ProfitSharingQueryResult |
ProfitSharingService.profitSharingQuery(ProfitSharingQueryRequest request)
TODO:微信返回签名失败
发起分账请求后,可调用此接口查询分账结果;发起分账完结请求后,可调用此接口查询分账完结的执行结果。
|
ProfitSharingReturnResult |
ProfitSharingV3Service.profitSharingReturn(ProfitSharingReturnRequest request)
请求分账回退API
如果订单已经分账,在退款时,可以先调此接口,将已分账的资金从分账接收方的账户回退给分账方,再发起退款
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_3.shtml
接口链接: https://api.mch.weixin.qq.com/v3/profitsharing/return-orders
注意:
• 分账回退以原分账单为依据,支持多次回退,申请回退总金额不能超过原分账单分给该接收方的金额
• 此接口采用同步处理模式,即在接收到商户请求后,会实时返回处理结果
• 对同一笔分账单最多能发起20次分账回退请求
• 退款和分账回退没有耦合,分账回退可以先于退款请求,也可以后于退款请求
• 此功能需要接收方在商户平台-交易中心-分账-分账接收设置下,开启同意分账回退后,才能使用
|
ProfitSharingReturnResult |
ProfitSharingService.profitSharingReturn(ProfitSharingReturnRequest returnRequest)
TODO:这个接口用真实的数据返回【参数不正确】,我对比官方文档除了缺少sub_mch_id,和sub_appid之外其他相同,当我随便填了一个商户id的时候,提示【回退方没有开通分账回退功能】
仅对订单进行退款时,如果订单已经分账,可以先调用此接口将指定的金额从分账接收方(仅限商户类型的分账接收方)回退给特约商户,然后再退款。
|
ProfitSharingReturnResult |
ProfitSharingService.profitSharingReturnQuery(ProfitSharingReturnQueryRequest queryRequest)
TODO:因profitsharingReturn接口无法使用,没有办法对这里进行真实的测试,模拟数据这里返回【记录不存在】
商户需要核实回退结果,可调用此接口查询回退结果。
|
ProfitSharingUnfreezeResult |
ProfitSharingV3Service.profitSharingUnfreeze(ProfitSharingUnfreezeRequest request)
解冻剩余资金API
不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给特约商户
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_5.shtml
接口链接: https://api.mch.weixin.qq.com/v3/profitsharing/orders/unfreeze
注意:
• 调用分账接口后,需要解冻剩余资金时,调用本接口将剩余的分账金额全部解冻给特约商户
• 此接口采用异步处理模式,即在接收到商户请求后,优先受理请求再异步处理,最终的分账结果可以通过查询分账接口获取
|
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
|
BusiFavorCallbacksResult |
MarketingBusiFavorService.queryBusiFavorCallbacks(BusiFavorCallbacksRequest request)
商家券接口-查询商家券事件通知地址 API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_8.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/callbacks
|
BusiFavorCouponsAssociateResult |
MarketingBusiFavorService.queryBusiFavorCouponsAssociate(BusiFavorCouponsAssociateRequest request)
商家券接口-关联订单信息 API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_9.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/coupons/associate
|
BusiFavorCouponsAssociateResult |
MarketingBusiFavorService.queryBusiFavorCouponsDisAssociate(BusiFavorCouponsAssociateRequest request)
商家券接口-取消关联订单信息 API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_10.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/coupons/disassociate
|
BusiFavorSubsidyResult |
MarketingBusiFavorService.queryBusiFavorSubsidyPayReceipts(String subsidyReceiptId)
商家券接口-查询营销补差付款单详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_17.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/subsidy/pay-receipts/{subsidy_receipt_id}
|
BusiFavorQueryUserCouponsResult |
MarketingBusiFavorService.queryBusiFavorUsersCoupons(BusiFavorQueryUserCouponsRequest request)
商家券接口-根据过滤条件查询用户券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_4.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/users/{openid}/coupons
|
CombineQueryResult |
WxPayService.queryCombine(String combineOutTradeNo)
合单查询订单API
请求URL: https://api.mch.weixin.qq.com/v3/combine-transactions/out-trade-no/{combine_out_trade_no}
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_11.shtml
|
CombineTransactionsResult |
EcommerceService.queryCombineTransactions(String outTradeNo)
合单查询订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_3.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)
查询汇率
应用场景:商户网站的商品以外币标价时,通过该接口可以实时查询到微信使用的转换汇率。
|
FavorCouponsQueryResult |
MarketingFavorService.queryFavorCouponsV3(FavorCouponsQueryRequest request)
代金券接口-根据商户号查用户的券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_9.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/users/{openid}/coupons
|
FavorStocksQueryResult |
MarketingFavorService.queryFavorStocksV3(FavorStocksQueryRequest request)
代金券接口-条件查询代金券批次列表API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_4.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks
|
BusiFavorQueryOneUserCouponsResult |
MarketingBusiFavorService.queryOneBusiFavorUsersCoupons(BusiFavorQueryOneUserCouponsRequest request)
商家券接口-查询用户单张券详情API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_5.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/users/{openid}/coupons/{coupon_code}/appids/{appid}
|
WxPayOrderQueryResult |
WxPayService.queryOrder(String transactionId,
String outTradeNo)
查询订单.
|
WxPayOrderQueryResult |
WxPayService.queryOrder(WxPayOrderQueryRequest request)
查询订单(适合于需要自定义子商户号和子商户appid的情形).
|
WxPayOrderQueryV3Result |
WxPayService.queryOrderV3(String transactionId,
String outTradeNo)
查询订单
详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。
|
WxPayOrderQueryV3Result |
WxPayService.queryOrderV3(WxPayOrderQueryV3Request request)
查询订单
详见 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_2.shtml
商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。
|
PartnerTransactionsResult |
EcommerceService.queryPartnerTransactions(PartnerTransactionsQueryRequest request)
普通查询订单API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_5.shtml
|
EntPayBankQueryResult |
EntPayService.queryPayBank(EntPayBankQueryRequest request)
企业付款到银行卡查询.
|
EntPayBankQueryResult |
EntPayService.queryPayBank(String partnerTradeNo)
企业付款到银行卡查询.
|
ProfitSharingResult |
EcommerceService.queryProfitSharing(ProfitSharingQueryRequest request)
查询分账结果API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_2.shtml
|
WxPayRedpackQueryResult |
RedpackService.queryRedpack(String mchBillNo)
查询红包记录.
|
WxPayRedpackQueryResult |
RedpackService.queryRedpack(WxPayRedpackQueryRequest request)
查询红包记录.
|
RefundQueryResult |
EcommerceService.queryRefundByOutRefundNo(String subMchid,
String outRefundNo)
查询退款API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
|
RefundQueryResult |
EcommerceService.queryRefundByRefundId(String subMchid,
String refundId)
查询退款API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml
|
ReturnOrdersResult |
EcommerceService.queryReturnOrders(ReturnOrdersQueryRequest request)
查询分账回退API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
WxPayScoreResult |
PayScoreService.queryServiceOrder(String outOrderNo,
String queryId)
支付分查询订单API.
|
SettlementResult |
EcommerceService.querySettlement(String subMchid)
查询结算账户API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter3_5.shtml
|
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
|
WxSignQueryResult |
WxEntrustPapService.querySign(WxSignQueryRequest wxSignQueryRequest)
签约状态查询
签约状态查询
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_7.shtml
查询签约关系接口提供单笔签约关系查询。
|
SpWithdrawStatusResult |
EcommerceService.querySpWithdrawByOutRequestNo(String outRequestNo)
电商平台查询提现状态API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml
|
SubWithdrawStatusResult |
EcommerceService.querySubWithdrawByOutRequestNo(String subMchid,
String outRequestNo)
二级商户查询提现状态API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_3.shtml
|
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(支持单品).
|
WxPayRefundQueryV3Result |
WxPayService.refundQueryV3(String outRefundNo)
微信支付-查询退款
应用场景:
提交退款申请后,通过调用该接口查询退款状态。
|
WxPayRefundQueryV3Result |
WxPayService.refundQueryV3(WxPayRefundQueryV3Request request)
微信支付-查询退款
应用场景:
提交退款申请后,通过调用该接口查询退款状态。
|
RefundsResult |
EcommerceService.refunds(RefundsRequest request)
退款申请API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_1.shtml
|
WxPayRefundResult |
WxPayService.refundV2(WxPayRefundRequest request)
申请退款API(支持单品).
|
WxPayRefundV3Result |
WxPayService.refundV3(WxPayRefundV3Request request)
申请退款API(支持单品).
|
ProfitSharingReceiverResult |
ProfitSharingService.removeReceiver(ProfitSharingReceiverRequest request)
服务商代子商户发起删除分账接收方请求,删除后不支持将结算后的钱分到该分账接收方。
|
void |
WxPayService.report(WxPayReportRequest request)
交易保障.
|
String |
WxPayService.requestV3(String url,
org.apache.http.client.methods.HttpRequestBase httpRequest)
发送http请求,得到响应字符串.
|
FavorStocksRestartResult |
MarketingFavorService.restartFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-重启代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_14.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/restart
|
BusiFavorCouponsReturnResult |
MarketingBusiFavorService.returnBusiFavorCoupons(BusiFavorCouponsReturnRequest request)
商家券接口-申请退款API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_13.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/coupons/return
|
ReturnOrdersResult |
EcommerceService.returnOrders(ReturnOrdersRequest request)
请求分账回退API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml
|
WxPayOrderReverseResult |
WxPayService.reverseOrder(WxPayOrderReverseRequest request)
撤销订单API.
|
FavorCallbacksSaveResult |
MarketingFavorService.saveFavorCallbacksV3(FavorCallbacksSaveRequest request)
代金券接口-设置消息通知地址API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_12.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/callbacks
|
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)
转换短链接.
|
FundBalanceResult |
EcommerceService.spDayEndBalance(SpAccountTypeEnum accountType,
String date)
服务商账户日终余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
FundBalanceResult |
EcommerceService.spNowBalance(SpAccountTypeEnum accountType)
服务商账户实时余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
SpWithdrawResult |
EcommerceService.spWithdraw(SpWithdrawRequest request)
电商平台提现API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_5.shtml
|
FavorStocksStartResult |
MarketingFavorService.startFavorStocksV3(String stockId,
FavorStocksSetRequest request)
代金券接口-激活代金券批次API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_3.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/favor/stocks/{stock_id}/start
|
FundBalanceResult |
EcommerceService.subDayEndBalance(String subMchid,
String date)
二级商户号账户日终余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
FundBalanceResult |
EcommerceService.subNowBalance(String subMchid)
二级商户号账户实时余额
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/amount.shtml
|
BusiFavorSubsidyResult |
MarketingBusiFavorService.subsidyBusiFavorPayReceipts(BusiFavorSubsidyRequest request)
商家券接口-营销补差付款API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_16.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/subsidy/pay-receipts
|
SubWithdrawResult |
EcommerceService.subWithdraw(SubWithdrawRequest request)
二级商户账户余额提现API
文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_2.shtml
|
WxPayScoreResult |
PayScoreService.syncServiceOrder(WxPayScoreRequest request)
支付分订单收款API.
|
WxTerminationContractResult |
WxEntrustPapService.terminationContract(WxTerminatedContractRequest wxTerminatedContractRequest)
申请解约
申请解约
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_9.shtml
商户与用户的签约关系有误或者商户主动要求与用户解除之前的签约协议时可调用此接口完成解约。
|
EntPayResult |
EntPayService.toEmpPay(EntWxEmpPayRequest request)
向员工付款
文档详见 https://work.weixin.qq.com/api/doc/90000/90135/90278
接口链接 https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/paywwsptrans2pocket
|
WxPayUnifiedOrderResult |
WxPayService.unifiedOrder(WxPayUnifiedOrderRequest request)
统一下单(详见https://pay.weixin.qq.com/wiki/doc/api/app/app.php?
|
WxPayUnifiedOrderV3Result |
WxPayService.unifiedOrderV3(TradeTypeEnum tradeType,
WxPayUnifiedOrderV3Request request)
在发起微信支付前,需要调用统一下单接口,获取"预支付交易会话标识"
|
BusiFavorStocksBudgetResult |
MarketingBusiFavorService.updateBusiFavorStocksBudget(String stockId,
BusiFavorStocksBudgetRequest request)
商家券接口-修改批次预算 API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_11.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/{stock_id}/budget
|
String |
MarketingBusiFavorService.updateBusiFavorStocksV3(String stockId,
BusiFavorStocksCreateRequest request)
商家券接口-创建商家券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_12.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/{stock_id}
|
BusiFavorCouponCodeResult |
MarketingBusiFavorService.uploadBusiFavorCouponCodes(String stockId,
BusiFavorCouponCodeRequest request)
商家券接口-上传预存code API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_6.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/{stock_id}/couponcodes
|
BusiFavorCouponsUseResult |
MarketingBusiFavorService.verifyBusiFavorCouponsUseV3(BusiFavorCouponsUseRequest request)
商家券接口-核销用户券API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_3.shtml
接口链接:https://api.mch.weixin.qq.com/v3/marketing/busifavor/coupons/use
|
WxWithholdResult |
WxEntrustPapService.withhold(WxWithholdRequest wxWithholdRequest)
申请扣款
申请扣款
详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_8.shtml
请求微信发起委托扣款,扣款额度和次数由使用的签约模板限制,
该扣款接口是立即扣款 无延时 扣款前无消息通知。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RsaCryptoUtil.encryptFields(Object encryptObject,
X509Certificate certificate) |
Copyright © 2021. All rights reserved.