\app\store\controller\wechatDemo

微信功能demo Class Demo

Summary

Methods
Properties
Constants
scanOneQrc()
scanOneNotify()
scanQrc()
jsapiQrc()
jsapi()
notify()
No public properties found
No constants found
createQrc()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

scanOneQrc()

scanOneQrc() : \think\Response

微信扫码支付模式一二维码显示

Throws

\Endroid\QrCode\Exceptions\ImageFunctionFailedException
\Endroid\QrCode\Exceptions\ImageFunctionUnknownException
\Endroid\QrCode\Exceptions\ImageTypeInvalidException

Returns

\think\Response

scanOneNotify()

scanOneNotify() : string

微信扫码支付模式一通知处理

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

string

scanQrc()

scanQrc() : \think\Response

扫码支付模式二测试二维码

Throws

\Endroid\QrCode\Exceptions\ImageFunctionFailedException
\Endroid\QrCode\Exceptions\ImageFunctionUnknownException
\Endroid\QrCode\Exceptions\ImageTypeInvalidException
\WeChat\Exceptions\InvalidResponseException

Returns

\think\Response

jsapiQrc()

jsapiQrc() : \think\Response

公众号JSAPI支付二维码

Throws

\Endroid\QrCode\Exceptions\ImageFunctionFailedException
\Endroid\QrCode\Exceptions\ImageFunctionUnknownException
\Endroid\QrCode\Exceptions\ImageTypeInvalidException

Returns

\think\Response

jsapi()

jsapi() 

公众号JSAPI支付测试

Throws

\WeChat\Exceptions\InvalidResponseException
\WeChat\Exceptions\LocalCacheException
\think\Exception
\think\exception\PDOException

notify()

notify() : string

支付通知接收处理

Throws

\WeChat\Exceptions\InvalidResponseException

Returns

string

createQrc()

createQrc(string  $url) : \think\Response

显示二维码

Parameters

string $url

Throws

\Endroid\QrCode\Exceptions\ImageFunctionFailedException
\Endroid\QrCode\Exceptions\ImageFunctionUnknownException
\Endroid\QrCode\Exceptions\ImageTypeInvalidException

Returns

\think\Response