$app
$app : \EasyWeChat\Payment\Application
Class BaseClient.
$app : \EasyWeChat\Payment\Application
__construct(\EasyWeChat\Payment\Application $app)
Constructor.
\EasyWeChat\Payment\Application | $app |
request(string $url, string $method = 'GET', array $options = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Make a request.
string | $url | |
string | $method | |
array | $options |
pay(array $params) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Pay the order.
array | $params |
authCodeToOpenid(string $authCode) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Get openid by auth code.
string | $authCode |
requestRaw(string $endpoint, array $params = array(), string $method = 'post', array $options = array()) : \Psr\Http\Message\ResponseInterface
Make a request and return raw response.
string | $endpoint | |
array | $params | |
string | $method | |
array | $options |
safeRequest(string $endpoint, array $params, string $method = 'post', array $options = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Request with SSL.
string | $endpoint | |
array | $params | |
string | $method | |
array | $options |