Git Product home page Git Product logo

有的微信支付的回复消息验签失败,原因是你把回复消息转成了struct,字段就是固定的,而微信的回复消息可能会新增字段无法对应到你定义的struct里,导致验签失败,目前发现的有退款和退款查询,建议你改成map,否则要经常关注字段是否有变动 about gopay HOT 4 CLOSED

go-pay avatar go-pay commented on May 18, 2024
有的微信支付的回复消息验签失败,原因是你把回复消息转成了struct,字段就是固定的,而微信的回复消息可能会新增字段无法对应到你定义的struct里,导致验签失败,目前发现的有退款和退款查询,建议你改成map,否则要经常关注字段是否有变动

from gopay.

Comments (4)

iGoogle-ink avatar iGoogle-ink commented on May 18, 2024

@alexz2008
方便的话,题个 PR 吧,我确实不会实时知道哪些新字段,Map 的话,用起来不方便,虽然解决了接收的问题,但是取得时候都不知道有哪些字段

from gopay.

iGoogle-ink avatar iGoogle-ink commented on May 18, 2024

能提供一下 退款和退款查询时,同步返回的数据吗?我对比了一下,好像没什么问题,只是有些字段按编号增加的,我只增加了 0和1

from gopay.

iGoogle-ink avatar iGoogle-ink commented on May 18, 2024

已处理

from gopay.

fxk2006 avatar fxk2006 commented on May 18, 2024

经测试,是微信支付的问题,异步通知固定MD5,千万别HMAC-SHA25

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.