com.zopen.ato.properties.AlipayProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zopen-ato-starter Show documentation
Show all versions of zopen-ato-starter Show documentation
Alibaba Tencent And Others For Spring Boot.
package com.zopen.ato.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "zopen.alipay.pay")
public class AlipayProperties {
// 是否开启支付宝支付
private Boolean open = Boolean.FALSE;
// 应用ID
private String appId;
// 应用私钥
private String appPrivateKey;
// 支付宝公钥
private String alipayPublicKey;
// 本项目的域名地址(用于回调地址前缀)
private String domainUrl;
// 支付成功打开的页面(用于支付成功的同步处理,例:电脑网站支付成功后的跳转,取值参考:“redirect:/admin/success”、“admin/success”)
private String paySuccessUrl;
@Override
public String toString() {
return "AlipayProperties{" +
"open=" + open +
", appId='" + appId + '\'' +
", appPrivateKey='" + "******" + '\'' +
", alipayPublicKey='" + "******" + '\'' +
", domainUrl='" + domainUrl + '\'' +
", paySuccessUrl='" + paySuccessUrl + '\'' +
'}';
}
public Boolean getOpen() {
return open;
}
public void setOpen(Boolean open) {
this.open = open;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
public String getAppPrivateKey() {
return appPrivateKey;
}
public String getPaySuccessUrl() {
return paySuccessUrl;
}
public void setPaySuccessUrl(String paySuccessUrl) {
this.paySuccessUrl = paySuccessUrl;
}
public void setAppPrivateKey(String appPrivateKey) {
this.appPrivateKey = appPrivateKey;
}
public String getAlipayPublicKey() {
return alipayPublicKey;
}
public void setAlipayPublicKey(String alipayPublicKey) {
this.alipayPublicKey = alipayPublicKey;
}
public String getDomainUrl() {
return domainUrl;
}
public void setDomainUrl(String domainUrl) {
this.domainUrl = domainUrl;
}
}