Comments (4)
ok,我晚些时候看看怎么优化下。
PS:如果感兴趣,可以尝试提个 PR
from pay.
请问方便提供 SDK 的日志么?
from pay.
问题似乎是由 out_trade_no 的错误造成的,但回显的却是 签名异常: 微信签名为空
2024-02-28T23:06:45.091125+08:00 > yansongda.artful.INFO > [Artful] 请求第三方 API 成功 {"rocket":{"radar":{"url":"https://api.mch.weixin.qq.com/v3/pay/transactions/native","method":"POST","headers":{"Host":["api.mch.weixin.qq.com"],"Accept":["application/json, text/plain, application/x-gzip"],"User-Agent":["yansongda/pay-v3"],"Content-Type":["application/json; charset=utf-8"],"Authorization":["WECHATPAY2-SHA256-RSA2048 mchid=\"1618697327\",nonce_str=\"***\",timestamp=\"1709132804\",serial_no=\"***\",signature=\"***\",\"description\":\"测试分析报告-标准版报告-人格九道\",\"amount\":{\"total\":2900},\"notify_url\":\"https:\\/\\/gxz.***.com\\/wechat\\/notify\",\"appid\":\"***\",\"mchid\":\"1618697327\"}"},"params":{"out_trade_no":"et01hqq9a1s6ebfya3m111qwvx7x1709132804","description":"测试分析报告-标准版报告","amount":{"total":2900.0}},"payload":{"out_trade_no":"et01hqq9a1s6ebfya3m111qwvx7x1709132804","description":"测试分析报告-标准版报告","amount":{"total":2900.0},"_method":"POST","_url":"v3/pay/transactions/native","_service_url":"v3/pay/partner/transactions/native","notify_url":"https://gxz.***.com/wechat/notify","appid":"wx6c973b972da5ff01","mchid":"1618697327","_body":"{\"out_trade_no\":\"et01hqq9a1s6ebfya3m111qwvx7x1709132804\",\"description\":\"测试分析报告-标准版报告\",\"amount\":{\"total\":2900},\"notify_url\":\"https:\\/\\/gxz.***.com\\/wechat\\/notify\",\"appid\":\"wx6c973b972da5ff01\",\"mchid\":\"1618697327\"}","_authorization":"WECHATPAY2-SHA256-RSA2048 mchid=\"1618697327\",nonce_str=\"***\",timestamp=\"1709132804\",serial_no=\"***\",signature=\"***\""},"packer":"Yansongda\\Artful\\Contract\\PackerInterface","direction":"Yansongda\\Artful\\Contract\\DirectionInterface","destination":{"GuzzleHttp\\Psr7\\Response":[]},"destination_origin":{"status":400,"headers":{"Server":["nginx"],"Date":["Wed, 28 Feb 2024 15:06:45 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["210"],"Connection":["keep-alive"],"Keep-Alive":["timeout=8"],"Cache-Control":["no-cache, must-revalidate"],"X-Content-Type-Options":["nosniff"],"Request-ID":["***-268435462"],"Content-Language":["zh-CN"]},"body":"{\"code\":\"PARAM_ERROR\",\"detail\":{\"location\":\"body\",\"value\":38},\"message\":\"输入源“/body/out_trade_no”映射到值字段“商户订单号”字符串规则校验失败,字节数 38,大于最大值 32\"}"}}}
from pay.
@ganxiaozhe 麻烦 composer update 到最新版本试试看这个问题
from pay.
Related Issues (20)
- AppID不存在,请检查后再试 HOT 6
- 疑似验签失败 throw new InvalidResponseException(Exception::INVALID_RESPONSE_SIGN, '', ['headers' => $message->getHeaders(), 'body' => $body]); HOT 1
- feat: 支持微信支付-付款码支付v3接口 HOT 1
- 微信h5支付完成后 页面无法跳转,没有跳转到return_url设置的地址 HOT 1
- 通过内置方法获取不到微信证书 HOT 1
- 支付宝预授权,加密总是出错sign有问题 HOT 1
- 容器未找到: `getContainer()` 方法调用失败! 或许你应该先 `setContainer()` HOT 1
- 新版支付宝不支持 HOT 1
- hyperf框架使用yansongda/pay 3.7.0版本,微信支付成功回调接口没有触发 HOT 3
- 用爱发电,互联网良民,求放过 HOT 2
- https://pay.yansongda.cn/ 域名到期了,哥哥 HOT 1
- 支付宝H5支付提示未实现 `ShortcutInterface` HOT 1
- 服务未找到: Yansongda\Artful\Contract\ConfigInterface HOT 1
- 查询退款订单,报错,提示参数缺少 `out_refund_no`。 HOT 1
- 微信退款查询报错Params Error HOT 4
- 微信支付偶尔报错yansongda/pay/src/Plugin/Wechat/SignPlugin.php(34): get_wechat_authorization() HOT 1
- 支付宝H5支付 配置里填写return_url, 但是支付完成后, 只停留在支付页面, 并没有跳转到填写的url地址 HOT 1
- [doc]微信扫码支付参数确认 HOT 1
- 支付宝接口异常信息响应优化。 HOT 3
- \Yansongda\Pay\Plugin\Wechat\ResponsePlugin::validateResponse 的返回似乎有点多余
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pay.