SCHEME_PATH
SCHEME_PATH = 'weixin://wxpay/bizpayurl'
Scheme base path.
Class Payment.
$api : \EasyWeChat\Payment\API
$merchant : \EasyWeChat\Payment\Merchant
Merchant instance.
$cache : \Doctrine\Common\Cache\Cache
Cache.
__construct(\EasyWeChat\Payment\Merchant $merchant, \Doctrine\Common\Cache\Cache|null $cache = null)
Constructor.
\EasyWeChat\Payment\Merchant | $merchant | |
\Doctrine\Common\Cache\Cache|null | $cache |
handleNotify(callable $callback) : \Symfony\Component\HttpFoundation\Response
Handle payment notify.
callable | $callback |
handleRefundNotify(callable $callback) : \Symfony\Component\HttpFoundation\Response
Handle refund notify.
callable | $callback |
handleScanNotify(callable $callback) : \Symfony\Component\HttpFoundation\Response
Handle native scan notify.
https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 The callback shall return string of prepay_id or throw an exception.
callable | $callback |
configForShareAddress(string|\Overtrue\Socialite\AccessTokenInterface $accessToken, boolean $json = true) : string|array
Generate js config for share user address.
string|\Overtrue\Socialite\AccessTokenInterface | $accessToken | |
boolean | $json |
setMerchant(\EasyWeChat\Payment\Merchant $merchant)
Merchant setter.
\EasyWeChat\Payment\Merchant | $merchant |
getMerchant() : \EasyWeChat\Payment\Merchant
Merchant getter.
getNotify() : \EasyWeChat\Payment\Notify
Return Notify instance.
getRefundNotify() : \EasyWeChat\Payment\RefundNotify
Return RefundNotify instance.
setAPI(\EasyWeChat\Payment\API $api)
API setter.
\EasyWeChat\Payment\API | $api |
getAPI() : \EasyWeChat\Payment\API
Return API instance.