Comments (2)
我们全部使用的是最新的、官方推荐的方式进行开发的,所以,目前支持且只支持 RSA2 验证方式。
建议直接更换为 RSA2,只需要在 支付宝 端生成秘钥即可。
感谢您的支持!
from pay.
可以通过修改源码来实现.
-
在 /vendor/yansongda/pay/src/Gateways/Alipay/Support.php 文件中将 openssl_verify() 方法的 signature_alg 参数改为 OPENSSL_ALGO_SHA1. 同样将 openssl_sign() 方法中的该参数也改为 OPENSSL_ALGO_SHA1
-
修改 /vendor/yansongda/pay/src/Gateways/Alipay.php 文件中 payload 数组的 sign_type 键值改为 RSA.
修改完就是 RSA 加密的验证方式了.
from pay.
Related Issues (20)
- change: shortcut 完整标明各个插件,不使用 commonPlugin
- change(internal): 按 场景/api 对各个插件进行分类
- change(breaking): 统一查询为 query
- release: v3.6.0
- 新增需求:银联条码支付 HOT 2
- change(internal): error constant 命名规则统一
- feat: 新增 InvalidSignException
- change(internal): DirectionInterface 方法由 `parse` 改为 `guide`
- change: 查询API方法由 `find` 改为 `query`,同时参数只支持 array
- change(internal): shortcut 从 plugin 文件夹独立出来
- change: close 的 API 参数只支持 array,不再支持 string
- change: cancel 的 API 参数只支持 array,不再支持 string
- change: 手机网站支付快捷方式由 `wap` 改为 `h5`
- 唤起支付和下载验签都会报同样的问题decrypt_wechat_resource_aes_256_gcm HOT 4
- feat: 增加小程序虚拟支付签名、用户签名方法
- 希望添加通联支付的支持
- v3版本没有\Psr\EventDispatcher\EventDispatcherInterface这个类,后提示config error HOT 3
- feat: 增加 http factory
- 商家扣款独立签约希望返回协议字符串
- 微信查单文档错误 HOT 1
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.