View Javadoc
1   package com.foxinmy.weixin4j.payment.mch;
2   
3   import com.foxinmy.weixin4j.model.WeixinPayAccount;
4   import com.foxinmy.weixin4j.sign.WeixinPaymentSignature;
5   import com.foxinmy.weixin4j.sign.WeixinSignature;
6   
7   @Deprecated
8   public abstract class AbstractPayRequest implements MchPayRequest {
9   
10  	private final String prePayId;
11  	private final WeixinPayAccount paymentAccount;
12  	protected final WeixinSignature weixinSignature;
13  
14  	public AbstractPayRequest(String prePayId, WeixinPayAccount paymentAccount) {
15  		this.prePayId = prePayId;
16  		this.paymentAccount = paymentAccount;
17  		this.weixinSignature = new WeixinPaymentSignature(paymentAccount.getPaySignKey());
18  	}
19  
20  	@Override
21  	public String getPrePayId() {
22  		return this.prePayId;
23  	}
24  
25  	@Override
26  	public WeixinPayAccount getPaymentAccount() {
27  		return this.paymentAccount;
28  	}
29  }