定义查账,退款等接口,开发新版本支付宝接口,新增RSA2签名方式

This commit is contained in:
zzs
2017-02-24 10:51:50 +08:00
parent 601fde40c6
commit decbace443
17 changed files with 791 additions and 170 deletions

View File

@@ -28,8 +28,8 @@ public class ApyAccountRepository {
{
ApyAccount apyAccount1 = new ApyAccount();
apyAccount1.setPayId(1);
apyAccount1.setPartner("12******01");
apyAccount1.setAppid("wxa**********ba9e9");
apyAccount1.setPartner("2088911944978307");
apyAccount1.setAppid("2016052301431829");
// TODO 2017/2/9 16:20 author: egan sign_type只有单一key时public_key与private_key相等比如sign_type=MD5的情况
apyAccount1.setPublicKey("48gf0iwuhr***********r9weh9eiut9");
apyAccount1.setPrivateKey("48gf0iwuhr***********r9weh9eiut9");

View File

@@ -26,7 +26,7 @@ public enum PayType implements BasePayType {
@Override
public PayService getPayService(ApyAccount apyAccount) {
AliPayConfigStorage aliPayConfigStorage = new AliPayConfigStorage();
aliPayConfigStorage.setPartner(apyAccount.getPartner());
aliPayConfigStorage.setPid(apyAccount.getPartner());
aliPayConfigStorage.setAliPublicKey(apyAccount.getPublicKey());
aliPayConfigStorage.setKeyPrivate(apyAccount.getPrivateKey());
aliPayConfigStorage.setNotifyUrl(apyAccount.getNotifyUrl());