Properties

$values

$values : 

Type

Methods

SetSign()

SetSign() 

设置签名,详见签名生成算法

GetSign()

GetSign() : \值

获取签名,详见签名生成算法的值

Returns

\值

IsSignSet()

IsSignSet() : true

判断签名,详见签名生成算法是否存在

Returns

true —

或 false

ToXml()

ToXml() 

输出xml字符

Throws

\WxPayException

FromXml()

FromXml(string  $xml) 

将xml转为array

Parameters

string $xml

Throws

\WxPayException

ToUrlParams()

ToUrlParams() 

格式化参数格式化成url参数

MakeSign()

MakeSign() : \签名,本函数不覆盖sign成员变量,如要设置签名需要调用SetSign方法赋值

生成签名

Returns

\签名,本函数不覆盖sign成员变量,如要设置签名需要调用SetSign方法赋值

GetValues()

GetValues() 

获取设置的值

SetAppid()

SetAppid(string  $value) 

设置微信分配的公众账号ID

Parameters

string $value

GetAppid()

GetAppid() : \值

获取微信分配的公众账号ID的值

Returns

\值

IsAppidSet()

IsAppidSet() : true

判断微信分配的公众账号ID是否存在

Returns

true —

或 false

SetMch_id()

SetMch_id(string  $value) 

设置微信支付分配的商户号

Parameters

string $value

GetMch_id()

GetMch_id() : \值

获取微信支付分配的商户号的值

Returns

\值

IsMch_idSet()

IsMch_idSet() : true

判断微信支付分配的商户号是否存在

Returns

true —

或 false

SetTransaction_id()

SetTransaction_id(string  $value) 

设置微信的订单号,优先使用

Parameters

string $value

GetTransaction_id()

GetTransaction_id() : \值

获取微信的订单号,优先使用的值

Returns

\值

IsTransaction_idSet()

IsTransaction_idSet() : true

判断微信的订单号,优先使用是否存在

Returns

true —

或 false

SetOut_trade_no()

SetOut_trade_no(string  $value) 

设置商户系统内部的订单号,当没提供transaction_id时需要传这个。

Parameters

string $value

GetOut_trade_no()

GetOut_trade_no() : \值

获取商户系统内部的订单号,当没提供transaction_id时需要传这个。的值

Returns

\值

IsOut_trade_noSet()

IsOut_trade_noSet() : true

判断商户系统内部的订单号,当没提供transaction_id时需要传这个。是否存在

Returns

true —

或 false

SetNonce_str()

SetNonce_str(string  $value) 

设置随机字符串,不长于32位。推荐随机数生成算法

Parameters

string $value

GetNonce_str()

GetNonce_str() : \值

获取随机字符串,不长于32位。推荐随机数生成算法的值

Returns

\值

IsNonce_strSet()

IsNonce_strSet() : true

判断随机字符串,不长于32位。推荐随机数生成算法是否存在

Returns

true —

或 false