Giter Club home page Giter Club logo

Comments (5)

fzlee avatar fzlee commented on August 19, 2024

可以输出你初始化Alipay用到的参数, 以及你调用api_alipay_trade_page_pay 用到的参数吗?

from alipay.

alaikis avatar alaikis commented on August 19, 2024

appid:2017101009227809
app_notify_url:https://api.quidci.com/v1/alipy/callback
app_private_key_path:/home/developer/quidci/lib/zfb/rsa/private.pem
alipay_public_key_path:/home/developer/quidci/lib/zfb/rsa/alipay.pem
sign_type:RSA2
------------------- init atttri ------------------------
subject:201711201139453960用户在线充值
out_trade_no:201711201139453960
total_amount:5
--------------------webpay attri------------------------

from alipay.

fzlee avatar fzlee commented on August 19, 2024

我本地测试是没有问题的。
报错的原因可能是一些特殊的对象,比如None传递给了quote_plus函数导致的。

====

  1. 建议手动修改上面截图里面的源代码,也就是/home/webapps/..../site-packages/alipay/init.py , 242行,print(data), 看看到底传了哪些参数给sign_data这个函数。
  2. 或者是155行,print(ordered_items).

from alipay.

alaikis avatar alaikis commented on August 19, 2024

[('app_id', 2017101009227809), ('biz_content', '{"subject":"201711201201172360\u7528\u6237\u5728\u7ebf\u5145\u503c","out_trade_no":"201711201201172360","total_amount":"5","product_code":"FAST_INSTANT_TRADE_PAY"}'), ('charset', 'utf-8'), ('method', 'alipay.trade.page.pay'), ('notify_url', 'https://api.quidci.com/v1/alipy/callback'), ('sign_type', 'RSA2'), ('timestamp', '2017-11-20 12:01:18'), ('version', '1.0')]

from alipay.

fzlee avatar fzlee commented on August 19, 2024

appid 应该是一个字符串,你似乎传入了整数。

这个库应该支持将传入的整数转换为字符串,这个功能以后会实现。

from alipay.

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.