Git Product home page Git Product logo

mibile's Introduction

mobile

yktmoblie

路由地址参数

http://192.168.0.53:8081/mobile/pay?orderId=123456&userId=123455(订单支付详情信息)

http://192.168.0.53:8081/mobile/pay?orderId=8417655&type=3&userId=103&outTradeNo=828417655

支付坑

  • 商家参数格式有误,请联系商家/商家存在未配置的参数,请联系商家解决
原因: 回跳地址的域名(点击后新的URL)与申请H5支付时提交的授权域名(Referer的值)不匹配,,在商户配置支付安全域名
  • sdk

  • 商家存在未配置的参数,请联系商家解决

  • 后台prepay_id拿到,在android机闪了支付面板,ios弹"支付签名验证失败"

    安全域名、目录未正确设置,参与签名的值与调用的值不一致(如timestamp签名时动态取,回显时也动态取)等
    最新微信支付提供的SDK代码中,统一下单接口sign_type是置为 HMAC-SHA256 而不是使用默认的 MD5,而公众号内发起支付的签名只能使用 MD5,正是这种不一致导致了签名验证错误,将统一下单的签名类型改成MD5即可。
    1.微信接口返回的 签名(sign) 不能直接给h5,需要再次签名,自己手动签名
    2.  const md5=crypto.createHash("md5");
      md5.update(string);
      ret.paySign = md5.digest('hex').toUpperCase();
    3. 签名必须要在排序的字符串中添加商户key,并且排序的字符串不能转化成小写。。
    

mibile's People

Contributors

bearliu1991 avatar

Watchers

James Cloos avatar  avatar

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.