mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-07 19:46:15 +08:00
移除过期方法
This commit is contained in:
@@ -33,10 +33,6 @@ public class AliPayConfigStorage extends BasePayConfigStorage {
|
||||
this.aliPublicKey = aliPublicKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSecretKey() {
|
||||
return aliPublicKey;
|
||||
}
|
||||
|
||||
|
||||
public void setAppId(String appId) {
|
||||
|
||||
@@ -69,7 +69,6 @@ public enum PayType implements BasePayType {
|
||||
public PayService getPayService(ApyAccount apyAccount) {
|
||||
WxPayConfigStorage wxPayConfigStorage = new WxPayConfigStorage();
|
||||
wxPayConfigStorage.setMchId(apyAccount.getPartner());
|
||||
wxPayConfigStorage.setAppSecret(apyAccount.getPublicKey());
|
||||
wxPayConfigStorage.setKeyPublic(apyAccount.getPublicKey());
|
||||
wxPayConfigStorage.setAppid(apyAccount.getAppid());
|
||||
wxPayConfigStorage.setKeyPrivate(apyAccount.getPrivateKey());
|
||||
@@ -127,6 +126,7 @@ public enum PayType implements BasePayType {
|
||||
@Override
|
||||
public PayService getPayService(ApyAccount apyAccount) {
|
||||
FuiouPayConfigStorage fuiouPayConfigStorage = new FuiouPayConfigStorage();
|
||||
fuiouPayConfigStorage.setKeyPublic(apyAccount.getPublicKey());
|
||||
fuiouPayConfigStorage.setKeyPrivate(apyAccount.getPrivateKey());
|
||||
fuiouPayConfigStorage.setNotifyUrl(apyAccount.getNotifyUrl());
|
||||
fuiouPayConfigStorage.setReturnUrl(apyAccount.getReturnUrl());
|
||||
@@ -140,7 +140,6 @@ public enum PayType implements BasePayType {
|
||||
|
||||
@Override
|
||||
public TransactionType getTransactionType(String transactionType) {
|
||||
// in.egan.pay.ali.before.bean.AliTransactionType 17年更新的版本,旧版本请自行切换
|
||||
return FuiouTransactionType.valueOf(transactionType);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import com.egzosn.pay.common.api.BasePayConfigStorage;
|
||||
public class FuiouPayConfigStorage extends BasePayConfigStorage {
|
||||
|
||||
public String mchntCd;//商户代码
|
||||
public String mchntKey;//商户密钥
|
||||
|
||||
/**
|
||||
* 应用id
|
||||
@@ -54,13 +53,4 @@ public class FuiouPayConfigStorage extends BasePayConfigStorage {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSecretKey() {
|
||||
return super.getKeyPrivate();
|
||||
}
|
||||
|
||||
public void setSecretKey(String mchntKey){
|
||||
this.mchntKey = mchntKey;
|
||||
setKeyPrivate(mchntKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,20 +11,13 @@ import com.egzosn.pay.common.api.BasePayConfigStorage;
|
||||
*/
|
||||
public class WxYouDianPayConfigStorage extends BasePayConfigStorage {
|
||||
|
||||
public volatile String secretKey;
|
||||
|
||||
//账号
|
||||
public volatile String seller;
|
||||
|
||||
|
||||
|
||||
public void setSecretKey(String secretKey) {
|
||||
this.secretKey = secretKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSecretKey() {
|
||||
return secretKey;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,10 +20,7 @@ public class WxPayConfigStorage extends BasePayConfigStorage {
|
||||
public String mchId;
|
||||
|
||||
|
||||
@Override
|
||||
public String getSecretKey() {
|
||||
return appSecret;
|
||||
}
|
||||
|
||||
|
||||
public void setAppSecret(String appSecret) {
|
||||
this.appSecret = appSecret;
|
||||
|
||||
Reference in New Issue
Block a user