barry-ran / alifacepay Goto Github PK
View Code? Open in Web Editor NEW支付宝当面付python sdk封装
支付宝当面付python sdk封装
设置好参数后报错,辛苦看看什么问题(使用的同步方案):
Traceback (most recent call last):
File "j:\app.py", line 118, in precreate
precreate_response_content = self.client.execute(precreate_request)
File "J:\env\lib\site-packages\alipay\aop\api\DefaultAlipayClient.py", line 212, in execute
query_string, params = self.__prepare_request(request)
File "J:\env\lib\site-packages\alipay\aop\api\DefaultAlipayClient.py", line 89, in __prepare_request
common_params, params = self.__prepare_request_params(request)
File "J:\env\lib\site-packages\alipay\aop\api\DefaultAlipayClient.py", line 125, in __prepare_request_params
sign = sign_with_rsa2(self.__config.app_private_key, sign_content, self.__config.charset)
File "J:\env\lib\site-packages\alipay\aop\api\util\SignatureUtils.py", line 49, in sign_with_rsa2
signature = rsa.sign(sign_content, rsa.PrivateKey.load_pkcs1(private_key, format='PEM'), 'SHA-256')
File "J:\env\lib\site-packages\rsa\key.py", line 125, in load_pkcs1
return method(keyfile)
File "J:\env\lib\site-packages\rsa\key.py", line 615, in _load_pkcs1_pem
return cls._load_pkcs1_der(der)
File J:\env\lib\site-packages\rsa\key.py", line 550, in _load_pkcs1_der
key = cls(*as_ints)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Sequence'
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.