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 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
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
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 WeixinRequestExecutor
getWeixinSSLExecutor()
微信SSLprotected ResourceBundle
weixinBundle()
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
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 classBaseApi
-
createBaseRequestMap
protected Map<String,String> createBaseRequestMap(IdQuery idQuery)
支付接口请求基本数据- Parameters:
idQuery
- ID信息 可为空- Returns:
- 基础map
-
getWeixinSignature
public WeixinSignature getWeixinSignature()
微信签名类- Returns:
-
getWeixinSSLExecutor
protected WeixinRequestExecutor getWeixinSSLExecutor() throws WeixinException
微信SSL- Returns:
- Throws:
WeixinException
-
declareMerchant
protected <T extends MerchantResult> void declareMerchant(T merchant)
设置商户信息- Parameters:
merchant
-
-
-