mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-07 19:46:15 +08:00
2.14.10, 还原jdk8,移除不用字段
This commit is contained in:
@@ -30,7 +30,7 @@ public class PayoneerConfigStorage extends BasePayConfigStorage {
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getAppid() {
|
||||
return null;
|
||||
return programId;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ public class PayoneerConfigStorage extends BasePayConfigStorage {
|
||||
*/
|
||||
@Override
|
||||
public String getAppId() {
|
||||
return null;
|
||||
return programId;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,14 +50,11 @@ public class PayoneerConfigStorage extends BasePayConfigStorage {
|
||||
*/
|
||||
@Override
|
||||
public String getPid() {
|
||||
return programId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSeller() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取商户Id
|
||||
*
|
||||
|
||||
@@ -87,7 +87,7 @@ public class PayoneerPayService extends BasePayService<PayoneerConfigStorage> im
|
||||
private HttpHeader authHeader() {
|
||||
|
||||
List<Header> headers = new ArrayList<>();
|
||||
headers.add(new BasicHeader("Authorization", "Basic " + authorizationString(getPayConfigStorage().getSeller(), getPayConfigStorage().getKeyPrivate())));
|
||||
headers.add(new BasicHeader("Authorization", "Basic " + authorizationString(getPayConfigStorage().getPid(), getPayConfigStorage().getKeyPrivate())));
|
||||
|
||||
return new HttpHeader(headers);
|
||||
}
|
||||
@@ -498,7 +498,7 @@ public class PayoneerPayService extends BasePayService<PayoneerConfigStorage> im
|
||||
*/
|
||||
@Override
|
||||
public String getReqUrl(TransactionType type) {
|
||||
return (payConfigStorage.isTest() ? SANDBOX_DOMAIN : RELEASE_DOMAIN) + payConfigStorage.getPid() + "/" + type.getMethod();
|
||||
return (payConfigStorage.isTest() ? SANDBOX_DOMAIN : RELEASE_DOMAIN) + payConfigStorage.getAppId() + "/" + type.getMethod();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user