\WePayBill

微信商户账单及评论 Class Bill

Summary

Methods
Properties
Constants
__construct()
getNotify()
getPaySign()
shortUrl()
download()
comment()
No public properties found
No constants found
callPostApi()
$config
$params
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(array  $options) 

WeChat constructor.

Parameters

array $options

getNotify()

getNotify() : array

获取微信支付通知

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

array

getPaySign()

getPaySign(array  $data, string  $signType = 'MD5', string  $buff = '') : string

生成支付签名

Parameters

array $data

参与签名的数据

string $signType

参与签名的类型

string $buff

参与签名字符串前缀

Returns

string

shortUrl()

shortUrl(string  $longUrl) : array

转换短链接

Parameters

string $longUrl

需要转换的URL,签名用原串,传输需URLencode

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

array

download()

download(array  $options, null|string  $outType = null) : boolean|string

下载对账单

Parameters

array $options

静音参数

null|string $outType

输出类型

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

boolean|string

comment()

comment(array  $options) : array

拉取订单评价数据

Parameters

array $options

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

array

callPostApi()

callPostApi(string  $url, array  $data, boolean  $isCert = false, string  $signType = 'HMAC-SHA256', boolean  $needSignType = true) : array

以Post请求接口

Parameters

string $url

请求

array $data

接口参数

boolean $isCert

是否需要使用双向证书

string $signType

数据签名类型 MD5|SHA256

boolean $needSignType

是否需要传签名类型参数

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

array