public class WxEntrustPapServiceImpl extends Object implements WxEntrustPapService
| 构造器和说明 |
|---|
WxEntrustPapServiceImpl() |
public String mpSign(WxMpEntrustRequest wxMpEntrustRequest) throws WxPayException
WxEntrustPapService获取公众号纯签约链接, 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_1.shtml 该接口返回一个签约链接,该链接只能在微信内打开
mpSign 在接口中 WxEntrustPapServicewxMpEntrustRequest - the wx mp entrust requestWxPayException - the wx pay exceptionpublic String maSign(WxMaEntrustRequest wxMaEntrustRequest) throws WxPayException
WxEntrustPapService获取小程序纯签约参数json 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_3.shtml 返回一个json 前端用来拉起一个新的签约小程序进行签约
maSign 在接口中 WxEntrustPapServicewxMaEntrustRequest - the wx ma entrust requestWxPayException - the wx pay exceptionpublic WxH5EntrustResult h5Sign(WxH5EntrustRequest wxH5EntrustRequest) throws WxPayException
WxEntrustPapService获取h5纯签约支付跳转链接 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_4.shtml 返回一个签约链接 在浏览器请求链接拉起微信
h5Sign 在接口中 WxEntrustPapServicewxH5EntrustRequest - the wx h 5 entrust requestWxPayException - the wx pay exceptionpublic WxPayEntrustResult paySign(WxPayEntrustRequest wxPayEntrustRequest) throws WxPayException
WxEntrustPapService支付中签约 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_5.shtml 请求微信 若微信内请求 需要构造json返回, 若h5请求 直接使用mweb_url 链接即可拉起微信
paySign 在接口中 WxEntrustPapServicewxPayEntrustRequest - the wx pay entrust requestWxPayException - the wx pay exceptionpublic WxWithholdResult withhold(WxWithholdRequest wxWithholdRequest) throws WxPayException
WxEntrustPapService申请扣款 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_8.shtml 请求微信发起委托扣款,扣款额度和次数由使用的签约模板限制, 该扣款接口是立即扣款 无延时 扣款前无消息通知。 • 特殊情况:周期扣费为通知后24小时扣费方式情况下,如果用户为首次签约(包含解约后重新签约), 从用户签约成功时间开始算,商户在12小时内发起的扣款,会被立即执行,无延迟。商户超过12小时以后发起的扣款,都按24小时扣费规则执行
withhold 在接口中 WxEntrustPapServicewxWithholdRequest - the wx withhold requestWxPayException - the wx pay exceptionpublic WxPayCommonResult withholdPartner(WxWithholdRequest wxWithholdRequest) throws WxPayException
WxEntrustPapService申请扣款 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_8.shtml 请求微信发起委托扣款,扣款额度和次数由使用的签约模板限制, 该扣款接口是立即扣款 无延时 扣款前无消息通知。 • 特殊情况:周期扣费为通知后24小时扣费方式情况下,如果用户为首次签约(包含解约后重新签约), 从用户签约成功时间开始算,商户在12小时内发起的扣款,会被立即执行,无延迟。商户超过12小时以后发起的扣款,都按24小时扣费规则执行
withholdPartner 在接口中 WxEntrustPapServicewxWithholdRequest - the wx withhold requestWxPayException - the wx pay exceptionpublic String preWithhold(WxPreWithholdRequest wxPreWithholdRequest) throws WxPayException
WxEntrustPapService预扣费接口 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_10.shtml 商户进行委托代扣扣费前需要在可通知时间段内调用「预扣费通知」的接口为用户发送扣费提醒, 并设定扣费持续天数和预计扣费金额,经过扣费等待期后,在可扣费期内可发起扣费,扣款金额不能高于预计扣费金额, 扣费失败可主动发起重试扣费(重试次数由其他规则限制),直到扣费成功,或者可扣费期结束。 商户只能在北京时间每天 6:00~22:00调用「预扣费通知」
preWithhold 在接口中 WxEntrustPapServicewxPreWithholdRequest - the wx pre withhold requestWxPayException - the wx pay exceptionpublic WxSignQueryResult querySign(WxSignQueryRequest wxSignQueryRequest) throws WxPayException
WxEntrustPapService签约状态查询 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_7.shtml 查询签约关系接口提供单笔签约关系查询。
querySign 在接口中 WxEntrustPapServicewxSignQueryRequest - the wx sign query requestWxPayException - the wx pay exceptionpublic WxTerminationContractResult terminationContract(WxTerminatedContractRequest wxTerminatedContractRequest) throws WxPayException
WxEntrustPapService申请解约 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_9.shtml 商户与用户的签约关系有误或者商户主动要求与用户解除之前的签约协议时可调用此接口完成解约。 商户可以在商户后台(pay.weixin.qq.com)设置解约回调地址,当发生解约关系的时候,微信服务器会向此地址通知解约信息,内容与签约返回一致
terminationContract 在接口中 WxEntrustPapServicewxTerminatedContractRequest - the wx terminated contract requestWxPayException - the wx pay exceptionpublic WxWithholdOrderQueryResult papOrderQuery(WxWithholdOrderQueryRequest wxWithholdOrderQueryRequest) throws WxPayException
WxEntrustPapService查询代扣订单 详见:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter4_5.shtml 该接口仅提供微信扣款服务申请扣款接口创建的订单进行查询,商户可以通过该接口主动查询微信代扣订单状态,完成下一步的业务逻辑。 ACCEPT等待扣款:为24小时延时扣费场景下独有的,当没有达到24小时前一直是这种状态; NOTPAY未支付:系统已经启动扣款流程,这个状态只是瞬间状态,很快会进入终态(SUCCESS、PAY_FAIL)
papOrderQuery 在接口中 WxEntrustPapServicewxWithholdOrderQueryRequest - the wx withhold order query requestWxPayException - the wx pay exceptionCopyright © 2024. All rights reserved.