for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyWeChat\Payment\Base;
use EasyWeChat\Payment\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* Pay the order.
* @param array $attributes
* @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
public function pay(array $attributes)
return $this->request('pay/micropay', $attributes);
}
* Get openid by auth code.
* @param string $authCode
public function authCodeToOpenid(string $authCode)
return $this->request('tools/authcodetoopenid', ['auth_code' => $authCode]);