com.tencent.mm.sdk.modelpay
Class PayResp

java.lang.Object
  extended by com.tencent.mm.sdk.modelbase.BaseResp
      extended by com.tencent.mm.sdk.modelpay.PayResp

public class PayResp
extends BaseResp


Nested Class Summary
 
Nested classes/interfaces inherited from class com.tencent.mm.sdk.modelbase.BaseResp
BaseResp.ErrCode
 
Field Summary
 java.lang.String extData
          
Custom string defined by the third-party app.
 java.lang.String prepayId
          
Prepay ID
预支付订单
 java.lang.String returnKey
          
Data returned to merchant
返回给商家的信息
 
Fields inherited from class com.tencent.mm.sdk.modelbase.BaseResp
errCode, errStr, openId, transaction
 
Constructor Summary
PayResp()
           
PayResp(Bundle data)
           
 
Method Summary
 boolean checkArgs()
          
Check parameters of this response
检查该响应各个参数的合法性
 void fromBundle(Bundle data)
          
Deserialize response data in Bundle
从Bundle中反序列化响应数据
 int getType()
          
Return type ID of the current response.
 void toBundle(Bundle data)
          
Serialize responses in Bundle
将响应序列化到Bundle中
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prepayId

public java.lang.String prepayId
Prepay ID
预支付订单


returnKey

public java.lang.String returnKey
Data returned to merchant
返回给商家的信息


extData

public java.lang.String extData
Custom string defined by the third-party app. This string will not be resolved by WeChat and will be returned to the third-party app on call-back.

NOTE: The string length should be within 1024.

第三方app自定义字符串,微信不作解析,在回调时带回给第三方

注意:字符串长度不能超过1024

Constructor Detail

PayResp

public PayResp()

PayResp

public PayResp(Bundle data)
Method Detail

toBundle

public void toBundle(Bundle data)
Description copied from class: BaseResp
Serialize responses in Bundle
将响应序列化到Bundle中

Overrides:
toBundle in class BaseResp
Parameters:
data -
Bundle that used to carry response data
承载响应数据的Bundle

fromBundle

public void fromBundle(Bundle data)
Description copied from class: BaseResp
Deserialize response data in Bundle
从Bundle中反序列化响应数据

Overrides:
fromBundle in class BaseResp
Parameters:
data -
Bundle that used to carry response data
承载响应数据的Bundle

getType

public int getType()
Description copied from class: BaseResp
Return type ID of the current response. See ConstantsAPI
返回当前响应的类型ID,参考 ConstantsAPI

Specified by:
getType in class BaseResp
Returns:
type of current request instance

checkArgs

public boolean checkArgs()
Description copied from class: BaseResp
Check parameters of this response
检查该响应各个参数的合法性

Specified by:
checkArgs in class BaseResp
Returns:
Returns True if all parameters are valid.
如果参数均合法,返回true