Package com.foxinmy.weixin4j.pay.model
Class WeixinPayAccount
- java.lang.Object
-
- com.foxinmy.weixin4j.model.WeixinAccount
-
- com.foxinmy.weixin4j.pay.model.WeixinPayAccount
-
- All Implemented Interfaces:
Serializable
public class WeixinPayAccount extends com.foxinmy.weixin4j.model.WeixinAccount
微信支付账户- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeixinPayAccount(String id, String paySignKey, String mchId)
支付商户信息WeixinPayAccount(String id, String paySignKey, String mchId, String certificateKey, String certificateFile)
支付商户信息WeixinPayAccount(String id, String secret, String paySignKey, String mchId, String certificateKey, String certificateFile, String deviceInfo, String partnerId, String subId, String subMchId)
支付商户信息
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCertificateFile()
String
getCertificateKey()
String
getDeviceInfo()
String
getMchId()
String
getPartnerId()
String
getPaySignKey()
String
getSubId()
String
getSubMchId()
void
setCertificateFile(String certificateFile)
void
setCertificateKey(String certificateKey)
void
setDeviceInfo(String deviceInfo)
void
setPartnerId(String partnerId)
void
setSubId(String subId)
void
setSubMchId(String subMchId)
String
toString()
-
-
-
Constructor Detail
-
WeixinPayAccount
public WeixinPayAccount(String id, String paySignKey, String mchId)
支付商户信息- Parameters:
id
- 公众号唯一的身份ID(必填)paySignKey
- 支付密钥字符串(必填)mchId
- 微信支付分配的商户号(必填)
-
WeixinPayAccount
public WeixinPayAccount(String id, String paySignKey, String mchId, String certificateKey, String certificateFile)
支付商户信息- Parameters:
id
- 公众号唯一的身份ID(必填)paySignKey
- 支付密钥字符串(必填)mchId
- 微信支付分配的商户号(必填)certificateKey
- 加载支付证书文件的密码(默认为商户号)certificateFile
- 商户证书文件(默认加载classpath:ca.p12)
-
WeixinPayAccount
public WeixinPayAccount(String id, String secret, String paySignKey, String mchId, String certificateKey, String certificateFile, String deviceInfo, String partnerId, String subId, String subMchId)
支付商户信息- Parameters:
id
- 公众号唯一的身份ID(必填)secret
- 公众号调用接口的凭证(最好填写)paySignKey
- 支付密钥字符串(必填)mchId
- 微信支付分配的商户号(必填)certificateKey
- 加载支付证书文件的密码(默认为商户号)certificateFile
- 商户证书文件(默认加载classpath:ca.p12)deviceInfo
- 微信支付分配的设备号(非必填)partnerId
- 财付通的商户号(非必填)subId
- 微信分配的子商户公众账号ID(非必填)subMchId
- 微信支付分配的子商户号(非必填)
-
-
Method Detail
-
getPaySignKey
public String getPaySignKey()
-
getMchId
public String getMchId()
-
getDeviceInfo
public String getDeviceInfo()
-
getCertificateKey
public String getCertificateKey()
-
getPartnerId
public String getPartnerId()
-
getSubId
public String getSubId()
-
getSubMchId
public String getSubMchId()
-
setCertificateKey
public void setCertificateKey(String certificateKey)
-
getCertificateFile
public String getCertificateFile()
-
setCertificateFile
public void setCertificateFile(String certificateFile)
-
setDeviceInfo
public void setDeviceInfo(String deviceInfo)
-
setPartnerId
public void setPartnerId(String partnerId)
-
setSubId
public void setSubId(String subId)
-
setSubMchId
public void setSubMchId(String subMchId)
-
toString
public String toString()
- Overrides:
toString
in classcom.foxinmy.weixin4j.model.WeixinAccount
-
-