\EasyWeChat\Payment\NotifyRefunded

Summary

Methods
Properties
Constants
__construct()
handle()
fail()
respondWith()
toResponse()
getMessage()
decryptMessage()
reqInfo()
No public properties found
SUCCESS
FAIL
validate()
strict()
$app
$message
$fail
$attributes
$check
$sign
N/A
No private methods found
No private properties found
N/A

Constants

SUCCESS

SUCCESS = 'SUCCESS'

FAIL

FAIL = 'FAIL'

Properties

$message

$message : array

Type

array

$fail

$fail : string|null

Type

string|null

$attributes

$attributes : array

Type

array

$check

$check : boolean

Check sign.

If failed, throws an exception.

Type

boolean

$sign

$sign : boolean

Respond with sign.

Type

boolean

Methods

handle()

handle(\Closure  $closure) : \Symfony\Component\HttpFoundation\Response

Handle incoming notify.

Parameters

\Closure $closure

Throws

\EasyWeChat\Kernel\Exceptions\Exception

Returns

\Symfony\Component\HttpFoundation\Response

fail()

fail(string  $message) 

Parameters

string $message

respondWith()

respondWith(array  $attributes, boolean  $sign = false) : $this

Parameters

array $attributes
boolean $sign

Returns

$this

toResponse()

toResponse() : \Symfony\Component\HttpFoundation\Response

Build xml and return the response to WeChat.

Returns

\Symfony\Component\HttpFoundation\Response

getMessage()

getMessage() : array

Return the notify message from request.

Throws

\EasyWeChat\Kernel\Exceptions\Exception

Returns

array

decryptMessage()

decryptMessage(string  $key) : string|null

Decrypt message.

Parameters

string $key

Throws

\EasyWeChat\Kernel\Exceptions\Exception

Returns

string|null

reqInfo()

reqInfo() : array

Decrypt the `req_info` from request message.

Throws

\EasyWeChat\Kernel\Exceptions\Exception

Returns

array

validate()

validate(array  $message) 

Validate the request params.

Parameters

array $message

Throws

\EasyWeChat\Payment\Kernel\Exceptions\InvalidSignException
\EasyWeChat\Kernel\Exceptions\InvalidArgumentException

strict()

strict(mixed  $result) 

Parameters

mixed $result