pengfei00 / alipayf2f Goto Github PK
View Code? Open in Web Editor NEW支付宝 当面付 python api
支付宝 当面付 python api
报错信息:
Traceback (most recent call last):
File "E:/Python/f2f/main.py", line 9, in <module>
alipay = alipay(APPID,private_key,public_key,notify_url)
TypeError: 'module' object is not callable
代码内容:
# -*- coding: UTF-8 -*-
import os
os.chdir(r"E:\Python\f2f")
import alipay
APPID = 2017051207221985
private_key = 'MIIEogIBAAKCA='
public_key = 'MIIBI'
notify_url = 'https://91vps.club/2017/05/26/freenom/'
alipay = alipay(APPID,private_key,public_key,notify_url)
alipay.trade_pre_create("10236547","10","肥羊滴滴滴",)
我查了一下,"TypeError: 'module' object is not callable"这个信息是说你试图把"alipay"这个模块作为一个函数来调用,但它却无法调用。
可是博主给出的demo是可以调用的,这是为什么呢?
以及博主使用的是RSA1还是RSA2呢?
似乎在python3的环境中不能正常执行
Traceback (most recent call last):
File "\alipay.py", line 7, in
from urllib import request, parse
ImportError: cannot import name request
这个由解吗……然后作者能否提供下调用trade_pre_create的demo呀?这里失败了好多次无法启动模型
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.