Package com.foxinmy.weixin4j.payment.mch
Class MchPayPackage
- java.lang.Object
- 
- com.foxinmy.weixin4j.http.weixin.XmlResult
- 
- com.foxinmy.weixin4j.payment.mch.MerchantResult
- 
- com.foxinmy.weixin4j.payment.PayPackage
- 
- com.foxinmy.weixin4j.payment.mch.MchPayPackage
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 @Deprecated public class MchPayPackage extends PayPackage Deprecated.迁移到子模块weixin4j-pay支付订单详情- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedMchPayPackage()Deprecated.MchPayPackage(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach)Deprecated.微信支付MchPayPackage(String body, String detial, String outTradeNo, double totalFee, CurrencyType feeType, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach, Date timeStart, Date timeExpire, String goodsTag, String limitPay, String subOpenId)Deprecated.完整参数
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAuthCode()Deprecated.StringgetFeeType()Deprecated.StringgetLimitPay()Deprecated.StringgetOpenId()Deprecated.StringgetProductId()Deprecated.StringgetSceneInfo()Deprecated.StringgetSubOpenId()Deprecated.StringgetTradeType()Deprecated.voidsetLimitPay(String limitPay)Deprecated.voidsetSceneInfo(String sceneInfo)Deprecated.voidsetSubOpenId(String subOpenId)Deprecated.StringtoString()Deprecated.- 
Methods inherited from class com.foxinmy.weixin4j.payment.PayPackagegetAttach, getBody, getCreateIp, getDetail, getFormatTotalFee, getGoodsTag, getNotifyUrl, getOutTradeNo, getTimeExpire, getTimeStart, getTotalFee, setAttach, setBody, setCreateIp, setDetail, setGoodsTag, setNotifyUrl, setOutTradeNo, setTimeExpire, setTimeExpire, setTimeStart, setTimeStart, setTotalFee
 - 
Methods inherited from class com.foxinmy.weixin4j.payment.mch.MerchantResultgetAppId, getDeviceInfo, getFormatRecall, getFormatSignType, getMchId, getNonceStr, getRecall, getSign, getSignType, getSubAppId, getSubMchId, setAppId, setDeviceInfo, setMchId, setNonceStr, setRecall, setSign, setSignType, setSubAppId, setSubMchId
 - 
Methods inherited from class com.foxinmy.weixin4j.http.weixin.XmlResultgetErrCode, getErrCodeDes, getResultCode, getReturnCode, getReturnMsg, setErrCode, setErrCodeDes, setResultCode, setReturnCode, setReturnMsg
 
- 
 
- 
- 
- 
Constructor Detail- 
MchPayPackageprotected MchPayPackage() Deprecated.
 - 
MchPayPackagepublic MchPayPackage(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach) Deprecated.微信支付- Parameters:
- body- 支付详情 必填
- outTradeNo- 商户侧订单号 必填
- totalFee- 支付金额(单位元) 必填
- notifyUrl- 支付回调URL 必填
- createIp- 发起支付的IP地址 必填
- tradeType- 支付类型 必填
- openId- 用户唯一标识 公众号JSAPI支付必填
- authCode- 支付授权码 刷卡MICROPAY支付必填
- productId- 商品ID 扫码NATIVE支付必填
- attach- 支付时附加信息 非必填
 
 - 
MchPayPackagepublic MchPayPackage(String body, String detial, String outTradeNo, double totalFee, CurrencyType feeType, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach, Date timeStart, Date timeExpire, String goodsTag, String limitPay, String subOpenId) Deprecated.完整参数- Parameters:
- body- 商品描述 必填项
- detail- 商品名称明细列表 非必填项
- outTradeNo- 商户内部唯一订单号 必填项
- totalFee- 商品总额 单位元 必填项
- notifyUrl- 支付回调URL 必填项
- createIp- 订单生成的机器IP 必填项
- tradeType- 交易类型 必填项
- feeType- 货币类型 非必填项
- openId- 用户ID tradeType=JSAPI时必填
- authCode- 刷卡支付授权码 tradeType=MICROPAY时必填
- productId- 产品ID tradeType=NATIVE时必填
- attach- 附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据 非必填项
- timeStart- 订单生成时间,格式为yyyyMMddHHmmss 非必填项
- timeExpire- 订单失效时间,格式为yyyyMMddHHmmss;注意:最短失效时间间隔必须大于5分钟 非必填项
- goodsTag- 商品标记,代金券或立减优惠功能的参数 非必填项
- limitPay- 指定支付方式:no_credit--指定不能使用信用卡支付 非必填项
- subOpenId- 用户在子商户appid下的唯一标识 非必填 openid和sub_openid可以选传其中之一,如果选择传sub_openid ,则必须传sub_appid
 
 
- 
 - 
Method Detail- 
getTradeTypepublic String getTradeType() Deprecated.
 - 
getFeeTypepublic String getFeeType() Deprecated.
 - 
getOpenIdpublic String getOpenId() Deprecated.
 - 
getAuthCodepublic String getAuthCode() Deprecated.
 - 
getProductIdpublic String getProductId() Deprecated.
 - 
getLimitPaypublic String getLimitPay() Deprecated.
 - 
setLimitPaypublic void setLimitPay(String limitPay) Deprecated.
 - 
getSubOpenIdpublic String getSubOpenId() Deprecated.
 - 
setSubOpenIdpublic void setSubOpenId(String subOpenId) Deprecated.
 - 
getSceneInfopublic String getSceneInfo() Deprecated.
 - 
setSceneInfopublic void setSceneInfo(String sceneInfo) Deprecated.
 - 
toStringpublic String toString() Deprecated.- Overrides:
- toStringin class- PayPackage
 
 
- 
 
-