com.tencent.mm.sdk.modelpay
Class PayReq

java.lang.Object
  extended by com.tencent.mm.sdk.modelbase.BaseReq
      extended by com.tencent.mm.sdk.modelpay.PayReq

public class PayReq
extends BaseReq


Nested Class Summary
static class PayReq.Options
           
 
Field Summary
 java.lang.String appId
          
App ID that the merchant applied for on WeChat Developer Platform
商户在微信开放平台申请的应用id
 java.lang.String extData
          
Custom string defined by the third-party app.
 java.lang.String nonceStr
          
Random string to avoid duplicated sending
随机串,防重发
 PayReq.Options options
           
 java.lang.String packageValue
          
Data and signature input by the merchant according to the document
商家根据文档填写的数据和签名
 java.lang.String partnerId
          
Merchant ID
商户id
 java.lang.String prepayId
          
Prepay ID
预支付订单
 java.lang.String sign
          
Signature that the merchant made for the data according to documents on WeChat Developer Platform
商家根据微信开放平台文档对数据做的签名
 java.lang.String timeStamp
          
Timestamp to avoid duplicated sending
时间戳,防重发
 
Fields inherited from class com.tencent.mm.sdk.modelbase.BaseReq
openId, transaction
 
Constructor Summary
PayReq()
           
 
Method Summary
 boolean checkArgs()
          
Check parameters of this request
检查该请求各个参数的合法性
 void fromBundle(Bundle data)
          
Deserialize request data in Bundle
从Bundle中反序列化request数据
 int getType()
          
Return type ID of the current request.
 void toBundle(Bundle data)
          
Serialize requests into Bundle
将请求序列化到Bundle中
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appId

public java.lang.String appId
App ID that the merchant applied for on WeChat Developer Platform
商户在微信开放平台申请的应用id


partnerId

public java.lang.String partnerId
Merchant ID
商户id


prepayId

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


nonceStr

public java.lang.String nonceStr
Random string to avoid duplicated sending
随机串,防重发


timeStamp

public java.lang.String timeStamp
Timestamp to avoid duplicated sending
时间戳,防重发


packageValue

public java.lang.String packageValue
Data and signature input by the merchant according to the document
商家根据文档填写的数据和签名


sign

public java.lang.String sign
Signature that the merchant made for the data according to documents on WeChat Developer Platform
商家根据微信开放平台文档对数据做的签名


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


options

public PayReq.Options options
Constructor Detail

PayReq

public PayReq()
Method Detail

checkArgs

public boolean checkArgs()
Description copied from class: BaseReq
Check parameters of this request
检查该请求各个参数的合法性

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

toBundle

public void toBundle(Bundle data)
Description copied from class: BaseReq
Serialize requests into Bundle
将请求序列化到Bundle中

Overrides:
toBundle in class BaseReq
Parameters:
data -
Bundle that used to carry request data
承载请求数据的Bundle

fromBundle

public void fromBundle(Bundle data)
Description copied from class: BaseReq
Deserialize request data in Bundle
从Bundle中反序列化request数据

Overrides:
fromBundle in class BaseReq
Parameters:
data -
Bundle that used to carry request data
承载请求数据的Bundle

getType

public int getType()
Description copied from class: BaseReq
Return type ID of the current request. See ConstantsAPI
返回当前请求的类型ID,参考 ConstantsAPI

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