\WePayRefund

微信商户退款 Class Refund

Summary

Methods
Properties
Constants
__construct()
getNotify()
getPaySign()
shortUrl()
create()
query()
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

create()

create(array  $options) : array

创建退款订单

Parameters

array $options

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

array

query()

query(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