\WxPayCloseOrder

关闭订单输入对象

Summary

Methods
Properties
Constants
SetSignType()
SetSign()
GetSign()
IsSignSet()
ToXml()
FromXml()
ToUrlParams()
MakeSign()
GetValues()
SetAppid()
GetAppid()
IsAppidSet()
SetMch_id()
GetMch_id()
IsMch_idSet()
SetOut_trade_no()
GetOut_trade_no()
IsOut_trade_noSet()
SetNonce_str()
GetNonce_str()
IsNonce_strSet()
No public properties found
No constants found
No protected methods found
$values
N/A
No private methods found
No private properties found
N/A

Properties

$values

$values

Methods

SetSignType()

SetSignType(mixed  $sign_type) : mixed

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

Parameters

mixed $sign_type

Returns

mixed —

SetSign()

SetSign(mixed  $config) : mixed

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

Parameters

mixed $config

Returns

mixed —

GetSign()

GetSign() : \值

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

Returns

\值 —

IsSignSet()

IsSignSet() : true

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

Returns

true —

或 false

ToXml()

ToXml() : mixed

输出xml字符

Throws

\WxPayException

Returns

mixed —

FromXml()

FromXml(string  $xml) : mixed

将xml转为array

Parameters

string $xml

Throws

\WxPayException

Returns

mixed —

ToUrlParams()

ToUrlParams() : mixed

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

Returns

mixed —

MakeSign()

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

生成签名

Parameters

\WxPayConfigInterface $config

配置对象

bool $needSignType

是否需要补signtype

Returns

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

GetValues()

GetValues() : mixed

获取设置的值

Returns

mixed —

SetAppid()

SetAppid(string  $value) : mixed

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

Parameters

string $value

Returns

mixed —

GetAppid()

GetAppid() : \值

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

Returns

\值 —

IsAppidSet()

IsAppidSet() : true

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

Returns

true —

或 false

SetMch_id()

SetMch_id(string  $value) : mixed

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

Parameters

string $value

Returns

mixed —

GetMch_id()

GetMch_id() : \值

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

Returns

\值 —

IsMch_idSet()

IsMch_idSet() : true

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

Returns

true —

或 false

SetOut_trade_no()

SetOut_trade_no(string  $value) : mixed

设置商户系统内部的订单号

Parameters

string $value

Returns

mixed —

GetOut_trade_no()

GetOut_trade_no() : \值

获取商户系统内部的订单号的值

Returns

\值 —

IsOut_trade_noSet()

IsOut_trade_noSet() : true

判断商户系统内部的订单号是否存在

Returns

true —

或 false

SetNonce_str()

SetNonce_str(string  $value) : mixed

设置商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号

Parameters

string $value

Returns

mixed —

GetNonce_str()

GetNonce_str() : \值

获取商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号的值

Returns

\值 —

IsNonce_strSet()

IsNonce_strSet() : true

判断商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号是否存在

Returns

true —

或 false