@@ -51,6 +51,10 @@ public class WxPayConfigStorage extends BasePayConfigStorage {
5151 * 微信支付分配的子商户号,开发者模式下必填 合作者id
5252 */
5353 private String subMchId ;
54+ /**
55+ * V2 Api密钥
56+ */
57+ private String apiKey ;
5458
5559 /**
5660 * 商户API证书
@@ -111,19 +115,33 @@ public String getMchId() {
111115
112116 public void setMchId (String mchId ) {
113117 this .mchId = mchId ;
118+ addAttr ("mchId" , mchId );
114119 }
115120
116121 /**
117122 * 为商户平台设置的密钥key
118123 *
119- * @return 微信密钥
124+ * @return 微信v2密钥
120125 */
121- public String getSecretKey () {
122- return getKeyPrivate () ;
126+ public String getApiKey () {
127+ return apiKey ;
123128 }
124129
125- public void setSecretKey (String secretKey ) {
126- setKeyPrivate (secretKey );
130+ public void setApiKey (String apiKey ) {
131+ this .apiKey = apiKey ;
132+ addAttr ("apiKey" , apiKey );
133+ }
134+
135+ public void setV3ApiKey (String v3ApiKey ) {
136+ setKeyPrivate (v3ApiKey );
137+ }
138+ /**
139+ * 为商户平台设置的密钥key
140+ *
141+ * @return 微信v3密钥
142+ */
143+ public String getV3ApiKey () {
144+ return getKeyPrivate ();
127145 }
128146
129147 public void setAppId (String appId ) {
@@ -147,6 +165,7 @@ public String getSubAppId() {
147165
148166 public void setSubAppId (String subAppId ) {
149167 this .subAppId = subAppId ;
168+ addAttr ("subAppId" , subAppId );
150169 }
151170
152171 public String getSpAppId () {
@@ -155,6 +174,7 @@ public String getSpAppId() {
155174
156175 public void setSpAppId (String spAppId ) {
157176 this .spAppId = spAppId ;
177+ addAttr ("spAppId" , spAppId );
158178 }
159179
160180 public String getSpMchId () {
@@ -163,6 +183,7 @@ public String getSpMchId() {
163183
164184 public void setSpMchId (String spMchId ) {
165185 this .spMchId = spMchId ;
186+ addAttr ("spMchId" , spMchId );
166187 }
167188
168189 /**
@@ -180,6 +201,7 @@ public String getSubAppid() {
180201 @ Deprecated
181202 public void setSubAppid (String subAppid ) {
182203 this .subAppId = subAppid ;
204+ addAttr ("subAppId" , subAppId );
183205 }
184206
185207
@@ -189,6 +211,7 @@ public String getSubMchId() {
189211
190212 public void setSubMchId (String subMchId ) {
191213 this .subMchId = subMchId ;
214+ addAttr ("subMchId" , subMchId );
192215 }
193216
194217 public Object getApiClientKeyP12 () {
@@ -197,6 +220,7 @@ public Object getApiClientKeyP12() {
197220
198221 public void setApiClientKeyP12 (Object apiClientKeyP12 ) {
199222 this .apiClientKeyP12 = apiClientKeyP12 ;
223+ addAttr ("apiClientKeyP12" , apiClientKeyP12 );
200224 }
201225
202226 public CertStoreType getCertStoreType () {
@@ -205,6 +229,7 @@ public CertStoreType getCertStoreType() {
205229
206230 public void setCertStoreType (CertStoreType certStoreType ) {
207231 this .certStoreType = certStoreType ;
232+ addAttr ("certStoreType" , certStoreType );
208233 }
209234
210235 public CertEnvironment getCertEnvironment () {
0 commit comments