All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.guanmengyuan.spring.ex.alipay.config.AliPayProperties Maven / Gradle / Ivy

There is a newer version: 3.3.3.2
Show newest version
package com.guanmengyuan.spring.ex.alipay.config;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * 支付宝配置
 */
@Data
@ConfigurationProperties(prefix = "alipay")
public class AliPayProperties {
    /**
     * 支付宝配置类
     */
    private List configs;

    /**
     * 支付宝配置类
     */
    @Data
    public static class AliPayConfig {
        /**
         * 支付宝appid
         */
        private String appId;

        /**
         * 协议 默认 https://
         */
        private String protocol = "https";
        /**
         * 地址 默认 openapi.alipay.com
         */
        private String gatewayHost = "openapi.alipay.com";

        /**
         * 加密方式 默认RSA2
         */
        private String signType = "RSA2";

        /**
         * 商户私钥位置
         */
        private String merchantPrivateKeyPath;

        /**
         * 商户证书位置
         */
        private String merchantCertPath;

        /**
         * 支付宝证书位置
         */
        private String alipayCertPath;

        /**
         * 支付宝根证书位置
         */
        private String alipayRootCertPath;

        /**
         * AES秘钥 可用于加密解密
         */
        private String encryptKey;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy