Giter VIP home page Giter VIP logo

Comments (17)

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024 1

发现三次都有一个共同点,有优惠券
voucher_detail_list 参数 : [{"name":"2元实体店通用红包","type":"ALIPAY_CASH_VOUCHER","amount":"0.10"}]

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024 1

我晓得问题了,这个 voucher_detail_list 参数会根据不同的支付接口,返回来的参数不一样,导致验签有问题

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024 1

具体的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.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024 1

v1.5.9 release 了,看一下 release_note 吧: https://github.com/iGoogle-ink/gopay/blob/master/release_note.txt

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

好的,可能有部分参数缺失,我看一下

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

能说一下,具体是哪个支付接口吗? alipay.trade.pay ?

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

能说一下,具体是哪个支付接口吗? alipay.trade.pay ?

alipay.VerifySign(config.Value, notifyReq)

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

我的意思是,异步通知验签失败,对吗?只要是带voucher_detail_list 这个参数的?

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

我的意思是,异步通知验签失败,对吗?只要是带voucher_detail_list 这个参数的?
是的,它们的共同点就是带voucher_detail_list 其它为null

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

我晓得问题了,这个 voucher_detail_list 参数会根据不同的支付接口,返回来的参数不一样,导致验签有问题
好的 什么时候能修复呢 ?

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

这个需要改一下实现方法了,要把结构体换成Map了,不然没法确定不同的接口返回的参数,今天我就处理

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

这个需要改一下实现方法了,要把结构体换成Map了,不然没法确定不同的接口返回的参数,今天我就处理

好的,谢谢啦

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

异步通知里的具体json信息,你方便提供一份吗?我看一下,因为支付宝的文档,实在是坑人,文档上的,跟实际的不一样

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

alipay.ParseNotifyResultToBodyMap() => 解析支付宝支付异步通知的参数到BodyMap
你试一下这个方法,解析验签是否可以

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

没找到日志 我把日志加上了,再看看吧~

from gopay.

iGoogle-ink avatar iGoogle-ink commented on July 24, 2024

修复完了,废弃了Parse请求参数到结构体的那个方法,1.5.9 ,推荐解析到 BodyMap 里,然后再验签

from gopay.

daimengxiaozhi avatar daimengxiaozhi commented on July 24, 2024

v1.5.9 release 了,看一下 release_note 吧: https://github.com/iGoogle-ink/gopay/blob/master/release_note.txt

好的,感谢!

from gopay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.