com.foxinmy.weixin4j.payment.mch
Class MchPayPackage

java.lang.Object
  extended by com.foxinmy.weixin4j.http.weixin.XmlResult
      extended by com.foxinmy.weixin4j.payment.mch.MerchantResult
          extended by com.foxinmy.weixin4j.payment.PayPackage
              extended by com.foxinmy.weixin4j.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
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)
          完整参数
 
Method Summary
 String getAuthCode()
           
 String getFeeType()
           
 String getLimitPay()
           
 String getOpenId()
           
 String getProductId()
           
 String getSubOpenId()
           
 String getTradeType()
           
 void setLimitPay(String limitPay)
           
 void setSubOpenId(String subOpenId)
           
 String toString()
           
 
Methods inherited from class com.foxinmy.weixin4j.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
 
Methods inherited from class com.foxinmy.weixin4j.payment.mch.MerchantResult
getAppId, 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.XmlResult
getErrCode, getErrCodeDes, getResultCode, getReturnCode, getReturnMsg, setErrCode, setErrCodeDes, setResultCode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
完整参数

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

getTradeType

public String getTradeType()

getFeeType

public String getFeeType()

getOpenId

public String getOpenId()

getAuthCode

public String getAuthCode()

getProductId

public String getProductId()

getLimitPay

public String getLimitPay()

setLimitPay

public void setLimitPay(String limitPay)

getSubOpenId

public String getSubOpenId()

setSubOpenId

public void setSubOpenId(String subOpenId)

toString

public String toString()
Overrides:
toString in class PayPackage


Copyright © 2014–2017. All rights reserved.