Skip to content
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

支付宝回调数据验证失败 #47

Closed
anyforever opened this issue Dec 20, 2017 · 4 comments
Closed

支付宝回调数据验证失败 #47

anyforever opened this issue Dec 20, 2017 · 4 comments

Comments

@anyforever
Copy link

问题描述

用示例做的
$pay->driver('alipay')->gateway()->verify($request->all())
一直返回false
测试数据是支付宝同步return_url中GET的数据

异步通知这步也是验证失败

顺便问下异步通知中gateway类型有关么?比如用wap支付的,这里是否能验证通过?

还有微信的也是如此,支付的时候可能会用h5的wap和mp等,异步通知里能否wap一个网关来做回调数据的验证?我目前只做了wap支付,异步通知数据验证通过了

代码

报错详情

@yansongda
Copy link
Owner

yansongda commented Dec 20, 2017

属于验签错误。

请参考 #5#8#12

可以,验签是不区分 gateway 的。这个问题将在 v2.0.0 版本中解决,目前正在开发中。

感谢您的支持!谢谢

@anyforever
Copy link
Author

@yansongda
收到,谢谢。另外一个问题,支付宝这个sign有没有时效性?
如果有的话,我一直拿着之前获得的这个数据测试,估计会不行

@anyforever
Copy link
Author

@yansongda
解决了,支付宝公钥与应用公钥的问题
配置里应该用支付宝公钥

@yansongda
Copy link
Owner

时效问题,请参考支付宝官方文档。

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants