-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyperf框架 用微信支付 报 verify_wechat_sign 异常 #627
Comments
检查 mch_secret_key 等参数 |
是微信的APIv3密钥吗
…------------------ 原始邮件 ------------------
发件人: "yansongda/pay" ***@***.***>;
发送时间: 2022年7月9日(星期六) 中午12:00
***@***.***>;
***@***.******@***.***>;
主题: Re: [yansongda/pay] hyperf框架 用微信支付 报 verify_wechat_sign 异常 (Issue #627)
检查 mch_secret_key 等参数
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
是 |
还要麻烦你帮我看下这里配置的对不对啊,还是报签名错误
![QQ截图20220709150627](https://user-images.githubusercontent.com/34265946/178095692-019bf976-e325-42df-8f81-786fd074988e.png)
…------------------ 原始邮件 ------------------
发件人: "yansongda/pay" ***@***.***>;
发送时间: 2022年7月9日(星期六) 中午12:11
***@***.***>;
***@***.******@***.***>;
主题: Re: [yansongda/pay] hyperf框架 用微信支付 报 verify_wechat_sign 异常 (Issue #627)
是
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我是lumen8框架 微信支付遇到一样的情况 支付宝是可以的 |
我的那个是金额没有*100 导致的 |
请问一下 我使用了 ServerRequestInterface接收参数,直接放到callback 里面 还是提示同样的 |
包版本号
hyperf里使用的
问题描述
微信支付报签名错误,不知道哪里配置的不对
你的代码
//微信支付
//service.php
return $this->pay->wechat()->app([
'out_trade_no' => $orderSn,
'description' => 'xxx',
'amount' => [
'total' => $payAmount,
],
]);
//Controller.php
$this->success($res->getBody()->getContents());
报错详情
[219] in /data/project/guomu-nft/vendor/yansongda/pay/src/Functions.php
[ERROR] #0 /data/project/guomu-nft/vendor/yansongda/pay/src/Plugin/Wechat/LaunchPlugin.php(33): verify_wechat_sign()
#1 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(132): Yansongda\Pay\Plugin\Wechat\LaunchPlugin->assembly()
#2 /data/project/guomu-nft/vendor/yansongda/pay/src/Plugin/Wechat/SignPlugin.php(50): Yansongda\Supports\Pipeline->Yansongda\Supports{closure}()
#3 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(132): Yansongda\Pay\Plugin\Wechat\SignPlugin->assembly()
#4 /data/project/guomu-nft/vendor/yansongda/pay/src/Plugin/Wechat/Pay/Common/InvokePrepayPlugin.php(29): Yansongda\Supports\Pipeline->Yansongda\Supports{closure}()
#5 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(132): Yansongda\Pay\Plugin\Wechat\Pay\Common\InvokePrepayPlugin->assembly()
#6 /data/project/guomu-nft/vendor/yansongda/pay/src/Plugin/Wechat/GeneralPlugin.php(31): Yansongda\Supports\Pipeline->Yansongda\Supports{closure}()
#7 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(132): Yansongda\Pay\Plugin\Wechat\GeneralPlugin->assembly()
#8 /data/project/guomu-nft/vendor/yansongda/pay/src/Plugin/Wechat/PreparePlugin.php(23): Yansongda\Supports\Pipeline->Yansongda\Supports{closure}()
#9 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(132): Yansongda\Pay\Plugin\Wechat\PreparePlugin->assembly()
#10 /data/project/guomu-nft/vendor/yansongda/supports/src/Pipeline.php(90): Yansongda\Supports\Pipeline->Yansongda\Supports{closure}()
#11 /data/project/guomu-nft/vendor/yansongda/pay/src/Provider/AbstractProvider.php(75): Yansongda\Supports\Pipeline->then()
#12 /data/project/guomu-nft/vendor/yansongda/pay/src/Provider/AbstractProvider.php(45): Yansongda\Pay\Provider\AbstractProvider->pay()
#13 /data/project/guomu-nft/vendor/yansongda/pay/src/Provider/Wechat.php(55): Yansongda\Pay\Provider\AbstractProvider->call()
#14 /data/project/guomu-nft/runtime/container/proxy/App_Service_HomeService.proxy.php(462): Yansongda\Pay\Provider\Wechat->__call()
#15 /data/project/guomu-nft/runtime/container/proxy/App_Controller_Api_HomeController.proxy.php(112): App\Service\HomeService->orderPay()
#16 /data/project/guomu-nft/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Controller\Api\HomeController->orderPay()
#17 /data/project/guomu-nft/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound()
#18 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\HttpServer\CoreMiddleware->process()
#19 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#20 /data/project/guomu-nft/runtime/container/proxy/App_Middleware_CheckAppUserLoginMiddleware.proxy.php(65): Hyperf\Dispatcher\HttpRequestHandler->handle()
#21 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Middleware\CheckAppUserLoginMiddleware->process()
#22 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#23 /data/project/guomu-nft/app/Middleware/CommonMiddleware.php(58): Hyperf\Dispatcher\HttpRequestHandler->handle()
#24 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Middleware\CommonMiddleware->process()
#25 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#26 /data/project/guomu-nft/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(83): Hyperf\Dispatcher\HttpRequestHandler->handle()
#27 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\Validation\Middleware\ValidationMiddleware->process()
#28 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#29 /data/project/guomu-nft/runtime/container/proxy/App_Middleware_LimitMiddleware.proxy.php(62): Hyperf\Dispatcher\HttpRequestHandler->handle()
#30 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Middleware\LimitMiddleware->process()
#31 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#32 /data/project/guomu-nft/app/Middleware/CommonMiddleware.php(58): Hyperf\Dispatcher\HttpRequestHandler->handle()
#33 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Middleware\CommonMiddleware->process()
#34 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest()
#35 /data/project/guomu-nft/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle()
#36 /data/project/guomu-nft/vendor/hyperf/http-server/src/Server.php(117): Hyperf\Dispatcher\HttpDispatcher->dispatch()
#37 {main}
sdk 日志
nginx/apache 日志
The text was updated successfully, but these errors were encountered: