Class MchPayPackage
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.pay.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.pay.payment.PayPackage
-
- com.foxinmy.weixin4j.pay.payment.mch.MchPayPackage
-
- All Implemented Interfaces:
Serializable
public class MchPayPackage extends PayPackage
支付订单详情- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MchPayPackage()
MchPayPackage(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach)
微信支付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, String receipt, String deposit, String profitSharing)
完整参数
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthCode()
String
getDeposit()
String
getFeeType()
String
getLimitPay()
String
getOpenId()
String
getProductId()
String
getProfitSharing()
String
getReceipt()
String
getSceneInfo()
String
getSubOpenId()
String
getTradeType()
void
setAuthCode(String authCode)
void
setDeposit(String deposit)
void
setFeeType(String feeType)
void
setLimitPay(String limitPay)
void
setOpenId(String openId)
void
setProductId(String productId)
void
setProfitSharing(String profitSharing)
void
setReceipt(String receipt)
void
setSceneInfo(String sceneInfo)
void
setSubOpenId(String subOpenId)
void
setTradeType(String tradeType)
String
toString()
-
Methods inherited from class com.foxinmy.weixin4j.pay.payment.PayPackage
getAttach, getBody, getCreateIp, getDetail, getFormatTotalFee, getGoodsTag, getNotifyUrl, getOutTradeNo, getTimeExpire, getTimeStart, getTotalFee, setAttach, setBody, setCreateIp, setDetail, setGoodsTag, setNotifyUrl, setOutTradeNo, setTimeExpire, setTimeExpire, setTimeStart, setTimeStart, setTotalFee, setTotalFee
-
Methods inherited from class com.foxinmy.weixin4j.pay.payment.mch.MerchantResult
getAppId, getDeviceInfo, getFormatRecall, 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.XmlResult
getErrCode, getErrCodeDes, getResultCode, getReturnCode, getReturnMsg, setErrCode, setErrCodeDes, setResultCode, setReturnCode, setReturnMsg
-
-
-
-
Constructor Detail
-
MchPayPackage
protected MchPayPackage()
-
MchPayPackage
public MchPayPackage(String body, String outTradeNo, double totalFee, String notifyUrl, String createIp, TradeType tradeType, String openId, String authCode, String productId, String attach)
微信支付- Parameters:
body
- 支付详情 必填outTradeNo
- 商户侧订单号 必填totalFee
- 支付金额(单位元) 必填notifyUrl
- 支付回调URL 必填createIp
- 发起支付的IP地址 必填tradeType
- 支付类型 必填openId
- 用户唯一标识 公众号JSAPI支付必填authCode
- 支付授权码 刷卡MICROPAY支付必填productId
- 商品ID 扫码NATIVE支付必填attach
- 支付时附加信息 非必填
-
MchPayPackage
public 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, String receipt, String deposit, String profitSharing)
完整参数- Parameters:
body
- 商品描述 必填项detial
- 商品名称明细列表 非必填项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_appidreceipt
- 电子发票入口开放标识deposit
- 是否押金支付profitSharing
- 是否需要分账
-
-
Method Detail
-
getTradeType
public String getTradeType()
-
setTradeType
public void setTradeType(String tradeType)
-
getFeeType
public String getFeeType()
-
setFeeType
public void setFeeType(String feeType)
-
getOpenId
public String getOpenId()
-
setOpenId
public void setOpenId(String openId)
-
getAuthCode
public String getAuthCode()
-
setAuthCode
public void setAuthCode(String authCode)
-
getProductId
public String getProductId()
-
setProductId
public void setProductId(String productId)
-
getLimitPay
public String getLimitPay()
-
setLimitPay
public void setLimitPay(String limitPay)
-
getSubOpenId
public String getSubOpenId()
-
setSubOpenId
public void setSubOpenId(String subOpenId)
-
getSceneInfo
public String getSceneInfo()
-
setSceneInfo
public void setSceneInfo(String sceneInfo)
-
getReceipt
public String getReceipt()
-
setReceipt
public void setReceipt(String receipt)
-
getDeposit
public String getDeposit()
-
setDeposit
public void setDeposit(String deposit)
-
getProfitSharing
public String getProfitSharing()
-
setProfitSharing
public void setProfitSharing(String profitSharing)
-
toString
public String toString()
- Overrides:
toString
in classPayPackage
-
-