\Yansongda\Pay\Gateways\AlipayWebGateway

Summary

Methods
Properties
Constants
__construct()
pay()
find()
No public properties found
No constants found
buildPayHtml()
getMethod()
getProductCode()
$mode
N/A
No private methods found
No private properties found
N/A

Properties

$mode

$mode : string

Mode.

Type

string

Methods

__construct()

__construct() : mixed

Bootstrap.

Throws

\Yansongda\Pay\Exceptions\InvalidArgumentException

Returns

mixed —

pay()

pay(string  $endpoint, array  $payload) : \Yansongda\Supports\Collection

Pay an order.

Parameters

string $endpoint
array $payload

Throws

\Yansongda\Pay\Exceptions\InvalidConfigException
\Yansongda\Pay\Exceptions\InvalidArgumentException

Returns

\Yansongda\Supports\Collection —

find()

find( $order) : array

Find.

Parameters

$order

Returns

array —

buildPayHtml()

buildPayHtml(string  $endpoint, array  $payload, string  $method = 'POST') : \Symfony\Component\HttpFoundation\Response

Build Html response.

Parameters

string $endpoint
array $payload
string $method

Returns

\Symfony\Component\HttpFoundation\Response —

getMethod()

getMethod() : string

Get method config.

Returns

string —

getProductCode()

getProductCode() : string

Get productCode config.

Returns

string —