|  |  |  | 
|---|
|  |  |  | public static JsapiServiceExtension jsapiExtService; | 
|---|
|  |  |  | public static BillDownloadService billDownloadService; | 
|---|
|  |  |  | public static WxPayProperties wxProperties; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static  TransferToUser transferToUser; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private WxPayProperties wxPayProperties; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | this.load_WxMaService(); | 
|---|
|  |  |  | this.load_wxPayService(); | 
|---|
|  |  |  | this.load_wxPayV2Service(); | 
|---|
|  |  |  | this.load_transferToUser(); | 
|---|
|  |  |  | this.load_transferToUser(); | 
|---|
|  |  |  | this.wxProperties = wxPayProperties; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void load_transferToUser() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | TransferToUser transferToUser = new TransferToUser( | 
|---|
|  |  |  | StringUtils.trimToNull(wxPayProperties.getSubMchId()), //商户id | 
|---|
|  |  |  | StringUtils.trimToNull(wxPayProperties.getWechatSerialNumer()), //商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/merchant/4013053053 | 
|---|
|  |  |  | StringUtils.trimToNull(wxPayProperties.getWechatPrivateKeyPath()), // 商户API证书私钥文件路径,本地文件路径 | 
|---|
|  |  |  | StringUtils.trimToNull(wxPayProperties.getWechatPayPublicKeyId()),   // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/merchant/4013038816 | 
|---|
|  |  |  | StringUtils.trimToNull(wxPayProperties.getWechatPubKeyPath()) // 微信支付公钥文件路径,本地文件路径 | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //        TransferToUser client = new TransferToUser( | 
|---|
|  |  |  | //                "1229817002",                    // 商户号,是由微信支付系统生成并分配给每个商户的唯一标识符,商户号获取方式参考 https://pay.weixin.qq.com/doc/v3/merchant/4013070756 | 
|---|
|  |  |  | //                "3FE90C2F3D40A56E1C51926F31B8A8D22426CCE0",         // 商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/merchant/4013053053 | 
|---|
|  |  |  | //                "d://wechatApiclient_key.pem",    // 商户API证书私钥文件路径,本地文件路径 | 
|---|
|  |  |  | //                "PUB_KEY_ID_0112298170022025071700291836000600",      // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/merchant/4013038816 | 
|---|
|  |  |  | //                "d://pub_key.pem"          // 微信支付公钥文件路径,本地文件路径 | 
|---|
|  |  |  | //        ); | 
|---|
|  |  |  | this.transferToUser = transferToUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|