Class NativePayResponse
- java.lang.Object
-
- com.foxinmy.weixin4j.http.weixin.XmlResult
-
- com.foxinmy.weixin4j.pay.payment.mch.MerchantResult
-
- com.foxinmy.weixin4j.pay.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
Constructors Modifier Constructor Description protected
NativePayResponse()
NativePayResponse(WeixinPayAccount weixinAccount, String prepayId)
作为return_code 为 SUCCESS 的时候返回NativePayResponse(String returnMsg, String resultMsg)
作为return_code 为 FAIL 的时候返回
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrepayId()
void
setPrepayId(String prepayId)
String
toString()
-
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
-
-
-
-
Constructor Detail
-
NativePayResponse
protected NativePayResponse()
-
NativePayResponse
public NativePayResponse(String returnMsg, String resultMsg)
作为return_code 为 FAIL 的时候返回- Parameters:
returnMsg
- 失败消息resultMsg
- 结果消息
-
NativePayResponse
public NativePayResponse(WeixinPayAccount weixinAccount, String prepayId)
作为return_code 为 SUCCESS 的时候返回- Parameters:
weixinAccount
- 商户信息prepayId
- 调用统一下单接口生成的预支付ID
-
-
Method Detail
-
getPrepayId
public String getPrepayId()
-
setPrepayId
public void setPrepayId(String prepayId)
-
toString
public String toString()
- Overrides:
toString
in classMerchantResult
-
-