com.foxinmy.weixin4j.payment.mch
Class NativePayResponse

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.mch.NativePayResponse
All Implemented Interfaces:
Serializable

public class NativePayResponse
extends MerchantResult

Native支付时的回调响应

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
, Serialized Form

Constructor Summary
NativePayResponse(String returnMsg, String resultMsg)
          作为return_code 为 FAIL 的时候返回
NativePayResponse(WeixinPayAccount weixinAccount, String prepayId)
          作为return_code 为 SUCCESS 的时候返回
 
Method Summary
 String getPrepayId()
           
 String toString()
           
 
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

NativePayResponse

public NativePayResponse(String returnMsg,
                         String resultMsg)
作为return_code 为 FAIL 的时候返回

Parameters:
returnMsg - 失败消息
resultMsg - 结果消息
Throws:
WeixinPayException

NativePayResponse

public NativePayResponse(WeixinPayAccount weixinAccount,
                         String prepayId)
作为return_code 为 SUCCESS 的时候返回

Parameters:
weixinAccount - 商户信息
prepayId - 调用统一下单接口生成的预支付ID
Throws:
WeixinPayException
Method Detail

getPrepayId

public String getPrepayId()

toString

public String toString()
Overrides:
toString in class MerchantResult


Copyright © 2014–2017. All rights reserved.