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

org.yes.tools.pay.config.PayConfig Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.yes.tools.pay.config;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class PayConfig {
    private static final String DEFAULT_PAY_BASE_URL = "https://api-mop.chinaums.com";
    private String appid;
    private String appKey;
    //主商务号
    private String mid;
    //来源编号
    private String sourceSn;
    //通讯密钥
    private String communicationKey;
    private String appletAppId;
    /**
     * 微信支付接口请求地址域名部分.
     */
    private String payBaseUrl = DEFAULT_PAY_BASE_URL;

    /**
     * 返回所设置的微信支付接口请求地址域名.
     *
     * @return 微信支付接口请求地址域名
     */
    public String getPayBaseUrl() {
        if (StringUtils.isEmpty(this.payBaseUrl)) {
            return DEFAULT_PAY_BASE_URL;
        }

        return this.payBaseUrl;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy