shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.walker.pay.wechat.v2;
 
import com.walker.infrastructure.arguments.Variable;
import com.walker.pay.AbstractPayContext;
import com.walker.pay.wechat.Constants;
 
public class WechatV2PayContext extends AbstractPayContext {
 
    /**
     * 返回公众号,应用ID
     * @return
     */
    public Variable getAppIdConfig(){
        return this.getConfigVariable(Constants.CONFIG_KEY_APP_ID);
    }
 
    /**
     * 返回商户号
     * @return
     */
    public Variable getMchIdConfig(){
        return this.getConfigVariable(Constants.CONFIG_KEY_MCH_ID);
    }
 
    /**
     * 返回公众号,签名密钥
     * @return
     */
    public Variable getApiKeyConfig(){
        return this.getConfigVariable(Constants.CONFIG_KEY_API_KEY);
    }
 
 
    /**
     * 返回小程序,应用ID
     * @return
     * @date 2023-09-15
     */
    public Variable getRoutineAppId(){
        return this.getConfigVariable(Constants.CONFIG_KEY_APP_ID_ROUTINE);
    }
 
    /**
     * 返回小程序,签名密钥
     * @return
     * @date 2023-09-15
     */
    public Variable getRoutineSecret(){
        return this.getConfigVariable(Constants.CONFIG_KEY_API_KEY_ROUTINE);
    }
 
    /**
     * 返回小程序,商户号
     * @return
     * @date 2023-09-15
     */
    public Variable getRoutineMchId(){
        return this.getConfigVariable(Constants.CONFIG_KEY_MCH_ID_ROUTINE);
    }
}