GithubHelp home page GithubHelp logo

codeif / flask-wxpay Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 7.0 86 KB

微信支付的Flask扩展。

Home Page: http://flask-wxpay.readthedocs.io/en/latest/

License: MIT License

Python 89.75% Dockerfile 1.13% Makefile 0.71% HTML 8.42%

flask-wxpay's People

Contributors

codeif avatar dependabot[bot] avatar sadanspace avatar tqlyyds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flask-wxpay's Issues

微信支付证书验证失败

在调用wxpay.transfers()方法[微信支付企业付款:https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers]接口时,项目启动一段时间后会返回“证书出错,请登录微信支付商户平台下载证书”错误,重启项目后错误消失,但是过一段时间之后,错误又会复现出来,初步怀疑是requests.Session的ssl握手机制问题。

gen-random_str是个方法

__init__.py中,

data = dict(
            appid=self.appid,
            noncestr=gen_random_str,   # 注**在第 260 行**_
            package='Sign=WXPay',
            partnerid=self.mch_id,
            prepayid=prepay_id,
            timestamp=str(int(time.time()))
        )

第260行这句,是否少一个(), gen-random_str是个方法, 在py3.6下报错
注: 我是在把data进行 json.dumps()的时候,报的错误. 提示function无法进行json序列化.

pip install Flask-WXPay failed.

Downloading/unpacking Flask-WXPay==0.1.13 (from -r requirements.txt (line 19))
  Downloading Flask-WXPay-0.1.13.tar.gz
  Running setup.py (path:/home/ubuntu/.virtualenvs/syh/build/Flask-WXPay/setup.py) egg_info for package Flask-WXPay
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/ubuntu/.virtualenvs/syh/build/Flask-WXPay/setup.py", line 7, in <module>
        readme = f.read()
      File "/home/ubuntu/.virtualenvs/syh/lib/python3.4/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/ubuntu/.virtualenvs/syh/build/Flask-WXPay/setup.py", line 7, in <module>

    readme = f.read()

  File "/home/ubuntu/.virtualenvs/syh/lib/python3.4/encodings/ascii.py", line 26, in decode

    return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/ubuntu/.virtualenvs/syh/build/Flask-WXPay
Storing debug log for failure in /tmp/user/1000/tmp3kt9ks4d

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.