Package com.foxinmy.weixin4j.pay.api
Class MchApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.pay.api.MchApi
-
- Direct Known Subclasses:
CashApi
,CouponApi
,CustomsApi
,PayApi
,ProfitSharingApi
public class MchApi extends com.foxinmy.weixin4j.api.BaseApi
商户支付- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- 商户支付平台
-
-
Field Summary
Fields Modifier and Type Field Description protected WeixinPayAccount
weixinAccount
protected WeixinSignature
weixinSignature
-
Constructor Summary
Constructors Constructor Description MchApi(WeixinPayAccount weixinAccount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
createBaseRequestMap(IdQuery idQuery)
支付接口请求基本数据protected <T extends MerchantResult>
voiddeclareMerchant(T merchant)
设置商户信息WeixinSignature
getWeixinSignature()
微信签名类protected com.foxinmy.weixin4j.http.weixin.WeixinRequestExecutor
getWeixinSSLExecutor()
微信SSLprotected ResourceBundle
weixinBundle()
-
-
-
Field Detail
-
weixinAccount
protected final WeixinPayAccount weixinAccount
-
weixinSignature
protected final WeixinSignature weixinSignature
-
-
Constructor Detail
-
MchApi
public MchApi(WeixinPayAccount weixinAccount)
-
-
Method Detail
-
weixinBundle
protected ResourceBundle weixinBundle()
- Specified by:
weixinBundle
in classcom.foxinmy.weixin4j.api.BaseApi
-
createBaseRequestMap
protected Map<String,String> createBaseRequestMap(IdQuery idQuery)
支付接口请求基本数据- Parameters:
idQuery
- ID信息 可为空- Returns:
- 基础map
-
getWeixinSignature
public WeixinSignature getWeixinSignature()
微信签名类- Returns:
-
getWeixinSSLExecutor
protected com.foxinmy.weixin4j.http.weixin.WeixinRequestExecutor getWeixinSSLExecutor() throws com.foxinmy.weixin4j.exception.WeixinException
微信SSL- Returns:
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
declareMerchant
protected <T extends MerchantResult> void declareMerchant(T merchant)
设置商户信息- Parameters:
merchant
-
-
-