Comments (17)
发现三次都有一个共同点,有优惠券
voucher_detail_list 参数 : [{"name":"2元实体店通用红包","type":"ALIPAY_CASH_VOUCHER","amount":"0.10"}]
from gopay.
我晓得问题了,这个 voucher_detail_list 参数会根据不同的支付接口,返回来的参数不一样,导致验签有问题
from gopay.
具体的json 信息估计没有,这是我从数据库 导出的
{
"notify_time": "2020-04-24 13:14:20",
"notify_type": "trade_status_sync",
"notify_id": "xxx",
"app_id": "xxx",
"charset": "utf-8",
"version": "1.0",
"sign_type": "RSA2",
"sign": "bphqBmVFdYUMHA59yxqZxDwV2qJ3X0IMRt0uBYH4VYPnSn+2yTGjAvdDb8unbEKmPEQKiv2P3khkriJIvGGBv6IRwheEmkh0rMl8zT7sQMcggXWRMjrkhIKQD64aOuXfEqx+BT6GrP+w/CxIrTZeK5G9/a5Oc7TDOS6KBhwhIRgoNRdyKIAO5k8zDY56SK5e0EJ7GX/HA9wK9I2c3yb0ZruvtrsAcBaGfkwp4IuHQC4Zz1xwqLE9rh+yINMgy9t",
"auth_app_id": "xxxx",
"trade_no": "xxx",
"out_trade_no": "xxx",
"out_biz_no": "",
"buyer_id": "xxx",
"buyer_logon_id": "xxx",
"seller_id": "xxx",
"seller_email": "xxxx",
"trade_status": "TRADE_SUCCESS",
"total_amount": "10.00",
"receipt_amount": "10.00",
"invoice_amount": "9.90",
"buyer_pay_amount": "9.90",
"point_amount": "0.00",
"refund_fee": "",
"subject": "xxxx-10.00",
"body": "软件天卡-10.00",
"gmt_create": "2020-04-24 13:14:18",
"gmt_payment": "2020-04-24 13:14:19",
"gmt_refund": "",
"gmt_close": "",
"fund_bill_list": "[{"amount":"9.90","fundChannel":"PCREDIT"},{"amount":"0.10","fundChannel":"DISCOUNT"}]",
"passback_params": "",
"voucher_detail_list": "[{"name":"2元实体店通用红包","type":"ALIPAY_CASH_VOUCHER","amount":"0.10"}]",
"method": "",
"timestamp": ""
},
这个估计没有参考意义,我找下日志吧 。主要是不知道怎么重现 ,我用的花呗红包是正常的 ,不知道他这个红包是啥-。-
from gopay.
v1.5.9 release 了,看一下 release_note 吧: https://github.com/iGoogle-ink/gopay/blob/master/release_note.txt
from gopay.
好的,可能有部分参数缺失,我看一下
from gopay.
能说一下,具体是哪个支付接口吗? alipay.trade.pay ?
from gopay.
能说一下,具体是哪个支付接口吗? alipay.trade.pay ?
alipay.VerifySign(config.Value, notifyReq)
from gopay.
我的意思是,异步通知验签失败,对吗?只要是带voucher_detail_list 这个参数的?
from gopay.
我的意思是,异步通知验签失败,对吗?只要是带voucher_detail_list 这个参数的?
是的,它们的共同点就是带voucher_detail_list 其它为null
from gopay.
我晓得问题了,这个 voucher_detail_list 参数会根据不同的支付接口,返回来的参数不一样,导致验签有问题
好的 什么时候能修复呢 ?
from gopay.
这个需要改一下实现方法了,要把结构体换成Map了,不然没法确定不同的接口返回的参数,今天我就处理
from gopay.
这个需要改一下实现方法了,要把结构体换成Map了,不然没法确定不同的接口返回的参数,今天我就处理
好的,谢谢啦
from gopay.
异步通知里的具体json信息,你方便提供一份吗?我看一下,因为支付宝的文档,实在是坑人,文档上的,跟实际的不一样
from gopay.
alipay.ParseNotifyResultToBodyMap() => 解析支付宝支付异步通知的参数到BodyMap
你试一下这个方法,解析验签是否可以
from gopay.
没找到日志 我把日志加上了,再看看吧~
from gopay.
修复完了,废弃了Parse请求参数到结构体的那个方法,1.5.9 ,推荐解析到 BodyMap 里,然后再验签
from gopay.
v1.5.9 release 了,看一下 release_note 吧: https://github.com/iGoogle-ink/gopay/blob/master/release_note.txt
好的,感谢!
from gopay.
Related Issues (20)
- google pay HOT 3
- 支付宝批量转账接口还不能用吧 HOT 2
- 现在是否有计划考虑支持 stripe HOT 7
- 苹果内购的TransactionInfo 加了价格字段 price currency HOT 3
- 支付宝公钥模式(非证书模式) HOT 3
- 支付宝验签问题 HOT 1
- 是否支持微信H5支付, 在API定义里面没有找到
- 设置开启自动验签,是不是在回调接口就不用再次验证了? HOT 2
- 使用PostAliPayAPISelfV2调用后怎么验签 HOT 2
- 沙箱可以 线上模式 验签失败 HOT 1
- 微信支付 v3,灰度证书会导致验签失败 HOT 2
- 微信付款码支付,返回结果中包含html字段判断错误 HOT 2
- 支持支付宝接口AES加解密吗 HOT 4
- apple.VerifyReceipt() => 苹果支付校验收据API 报21003 HOT 2
- 2024/04/09 13:53:47.730283 notification_v2_test.go:24: [ERROR] >> x509: certificate has expired or is not yet valid: current time 2024-04-09T13:53:47+08:00 is after 2023-09-24T02:50:33Z HOT 4
- func (v *V3NotifyReq) DecryptCipherText(apiV3Key string) 这些解密文传的apiv3key到底是什么? HOT 1
- 如何初始化微信服务商模式Client
- /v3/ecommerce/account/cancel-applications/media 图片Content-Type非法 HOT 1
- 微信支付V2统一下单404 HOT 1
- 进群 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 gopay.