提交 92bb3294 编写于 作者: Z zzy

feat(wxpay-client-sdk): 微信支付api

微信支付
上级 a7c51300
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.framework.pay.core.handler.wxpay.config; import lombok.Data;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.context.annotation.Configuration; /** * @Filename: WxPayProperties * @Author: zzy * @Data:2023/5/4 10:50 * @Description: 微信支付配置类 */@Data@Configuration@ConfigurationProperties(prefix = WxPayProperties.PREFIX)public class WxPayProperties { public static final String PREFIX = "pay.wxpay"; /** * 应用ID */ private String appId; /** * 商户号 */ private String mchId; /** * 商户API证书序列号 */ private String serialNo; /** * 商户API私钥路径 */ private String privateKey; /** * 商户APIV3密钥 */ private String apiV3key; /** * 网关地址 */ private String serverUrl; /** * 支付结果回调地址 */ private String notifyUrl;} /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.framework.pay.core.handler.wxpay.config; import lombok.Data;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.context.annotation.Configuration; /** * @Filename: WxPayProperties * @Author: zzy * @Data:2023/5/4 10:50 * @Description: 微信支付配置类 */@Data@Configuration@ConfigurationProperties(prefix = WxPayProperties.PREFIX)public class WxPayProperties { public static final String PREFIX = "pay.wxpay"; /** * 应用ID */ private String appId; /** * 商户号 */ private String mchId; /** * 商户api私钥文件路径 */ private String merchantPrivateKeyPath; /** * 商户api证书文件路径 */ private String merchantCertificatepath; /** * 商户API证书序列号 */ private String serialNo; /** * 商户APIV3密钥 */ private String apiV3key; /** * 网关地址 */ private String serverUrl; /** * 支付结果回调地址 */ private String notifyUrl;}
\ No newline at end of file \ No newline at end of file
......
package com.framework.pay.core.handler.wxpay.config.client.param; /** * @author zzy * @date 2023/5/9-18:03 */ public interface WxpayRequest<T extends WxpayResponse> { /** * 获取wx请求api路径 * * @return */ String getApiMethodName(); /** * 请求响应对象 * * @return */ Class<T> getResponseClass(); /** * 请求参数 * * @return */ String reqParams(); //头部验证信息 }
\ No newline at end of file
package com.framework.pay.core.handler.wxpay.config.client.param; /** * @author zzy * @date 2023/5/9-18:04 */ public abstract class WxpayResponse {}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册