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

com.zopen.ato.properties.WechatPayProperties Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.zopen.ato.properties;

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

@ConfigurationProperties(prefix = "zopen.wechat.pay")
public class WechatPayProperties {

    // 是否开启微信支付
    private Boolean open = Boolean.FALSE;

    // 公众号或小程序的appId
    @Deprecated
    private String appId;

    // 应用秘钥
    private String appKey;

    // 商户ID
    private String mchId;

    // 本项目的域名地址(用于回调地址前缀)
    private String domainUrl;

    @Override
    public String toString() {
        return "WechatPayProperties{" +
                "open=" + open +
                ", appId='" + appId + '\'' +
                ", appKey='" + "******" + '\'' +
                ", mchId='" + mchId + '\'' +
                ", domainUrl='" + domainUrl + '\'' +
                '}';
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public String getAppId() {
        return appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy