|  |  | 
 |  |  | import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl; | 
 |  |  | import com.wechat.pay.java.core.Config; | 
 |  |  | import com.wechat.pay.java.core.RSAAutoCertificateConfig; | 
 |  |  | import com.wechat.pay.java.core.RSAPublicKeyConfig; | 
 |  |  | import com.wechat.pay.java.core.http.HostName; | 
 |  |  | import com.wechat.pay.java.core.notification.RSAPublicKeyNotificationConfig; | 
 |  |  | import com.wechat.pay.java.service.billdownload.BillDownloadService; | 
 |  |  | import com.wechat.pay.java.service.partnerpayments.jsapi.JsapiService; | 
 |  |  | import com.wechat.pay.java.service.partnerpayments.jsapi.JsapiServiceExtension; | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     public void load_wxPayService()   { | 
 |  |  |         try { | 
 |  |  | //            Config config = | 
 |  |  | //                    new RSAPublicKeyConfig.Builder() | 
 |  |  | //                            .merchantId(wxPayProperties.getMchId()) | 
 |  |  | //                            .privateKeyFromPath(wxPayProperties.getPrivateKeyPath()) | 
 |  |  | //                            .publicKeyFromPath(wxPayProperties.getPubKeyPath()) | 
 |  |  | //                            .publicKeyId("PUB_KEY_ID_0117000719222024112700219100000508") | 
 |  |  | //                            .merchantSerialNumber(wxPayProperties.getSerialNumer()) | 
 |  |  | //                            .apiV3Key(wxPayProperties.getApiV3Key()) | 
 |  |  | //                            .build(); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |             Config config = | 
 |  |  |                     new RSAAutoCertificateConfig.Builder() | 
 |  |  |                     new RSAPublicKeyConfig.Builder() | 
 |  |  |                             .merchantId(wxPayProperties.getMchId()) | 
 |  |  |                             .privateKeyFromPath(wxPayProperties.getPrivateKeyPath()) | 
 |  |  | //                            .publicKeyFromPath(wxPayProperties.getPubKeyPath()) | 
 |  |  | //                            .publicKeyId("PUB_KEY_ID_0117000719222024112700219100000508") | 
 |  |  |                             .publicKeyFromPath(wxPayProperties.getPubKeyPath()) | 
 |  |  |                             .publicKeyId(wxPayProperties.getPayPublicKeyId()) | 
 |  |  |                             .merchantSerialNumber(wxPayProperties.getSerialNumer()) | 
 |  |  |                             .apiV3Key(wxPayProperties.getApiV3Key()) | 
 |  |  |                             .build(); | 
 |  |  |  | 
 |  |  |  | 
 |  |  | //            Config config = | 
 |  |  | //                    new RSAAutoCertificateConfig.Builder() | 
 |  |  | //                            .merchantId(wxPayProperties.getMchId()) | 
 |  |  | //                            .privateKeyFromPath(wxPayProperties.getPrivateKeyPath()) | 
 |  |  | ////                            .publicKeyFromPath(wxPayProperties.getPubKeyPath()) | 
 |  |  | ////                            .publicKeyId("PUB_KEY_ID_0117000719222024112700219100000508") | 
 |  |  | //                            .merchantSerialNumber(wxPayProperties.getSerialNumer()) | 
 |  |  | //                            .apiV3Key(wxPayProperties.getApiV3Key()) | 
 |  |  | //                            .build(); | 
 |  |  | //            this.wxPayService =  new JsapiService.Builder().config(config).build(); | 
 |  |  |  | 
 |  |  |             this.jsapiExtService =  new JsapiServiceExtension.Builder().config(config).build(); | 
 |  |  |             this.refundService = new RefundService.Builder().config(config).build(); | 
 |  |  |             this.billDownloadService = new BillDownloadService.Builder().config(config).build(); |